Google Cloud Messaging iOS 'NotRegistered' for some iOS devices - google-cloud-messaging

I use GCM in combination with an iOS app. The app registeres the device with GCM. I get a token from GCM, but when I send a message GCM reports ' NotRegistered'. Ik have tried to reinstall the app from Xcode, but the token is the same and keeps saying 'NotRegistered'. Deleting the app en reinstalling is does not help.
I have this problem on multiple devices (iPhone 6 iOS 9.1), iPad 3 and iPhone 4s. I have it working on a different iPhone 6 and iPhone 5s.
Could someone tell what is wrong? Or maybe how to force a new token from GCM?
Thanks in advance.

Related

React native FCM push notifications not working in IOS Adhoc and TestFlight

Trying to implement push notification in a react native app using google cloud messaging. The notification works perfectly on android device in a simulator and in production. But for IOS, it works only locally only when its ran in a device. In adhoc or test flight, it does not work. I am using the APN key. Anyone faced the same issue? I can see a lot of posts in stack overflow regarding push notification not working for ios but none of the post were helpful for me.
Here's what I have done till now:
Generated an APN Authentication Key in developer.apple.com
Added that key to ios App in firebase.console.google.com
Run the app in a device using xcode - (Push notification works fine everytime.)
Archive the app in xcode and distribute to AdHoc and install the .ipa file in a device. (Push notification does not work)
Distribute to testflight and test the push notification - does not work
Why would it work in debug mode and not in adhoc or testflight.
I checked this:https://stackoverflow.com/a/48111671/8729976 . It says there is a single auth token for both production and development environment so I am guessing its definitely not the key.
Here are the sample responses:
When the push notification is delivered we get status 200 with this message: projects/myproject-name/messages/1602538922793273
When the push notification is not delivered, we still get status 200 with this message: projects/myproject-name/messages/0:1602541135340865%6b2d5f5c6b2d5f5c
Don't know what the second message means.

QuickBlox Android to iPhone This Video Cannot be Played

I'm using QuickBlox in our chat app. There is a video share feature. When a vidoe file is receieved from Iphone to Android phone via quickblox and opens the file, it gives the error, sorry this video cannot be played. The issue persist when file is received from Android to iPhone too. But it works fine between Iphone to iPhone and Android Phone and Android Phone.
Any Fix?
This is not related to QuickBlox SDK,
This is the issue with Video file format
You should play with video files format and find a one which works on both

To implement GCM requires the Google Play APK needs to be installed will restrict the number of user to use our android app?

GCM features is added with the Google Services. While developing android application to use the GCM the device require to have Google APK installed.
And I heard that some of the devices not having the Play Store APK or there is no support for GCM. The devices like Amazon Fire phone, xiaomi and all.
I want to develop an app to support all the user. Is not like the user having installed Play Store APK can use our application.
I thought of using pubnub. I don't know whether this is an right alternative. Because I am not finding any other way to overcome this issue.
Please help me on this.
Thanks in advance.

iAd is working on test app, but not when its on appstore

I've just made an app containing iAd in iOS 7.
It's working fine on the development state, testing on the phone.
But after it's been released at the appstore, no ad's are being showed.
I HAVE checked the code, and the iAd is enabled
Anyone know why ?
It takes up to 3 days for the ads to be displayed in a new app.

iOS: Open Settings app Programmatically as Youtube app does

As we know Apple disabled this feature in iOS 5.1 and later:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"prefs://"]];
that allowed users launch for ex Settings app from any apps.
I'm wondering how YouTube iPhone app does it? Because it can still launch Settings app from it's application with iOS 5.1 and later.
Maybe there is no solution but, I just wondering about the way, YouTube app developer found :))
The YouTube app developer is Apple. They're not subject to the same rules as the rest of us.
Updated since someone kindly downvoted this four-year-old answer and brought it to my attention: you can now do this by opening a URL made from the UIApplicationOpenSettingsURLString string constant.
I don't really get a response for this question but can bring an argument to the discussion.
The RunKeeper app is able to launch the iphone pref app on iOS 6.1. I don't know how it makes that but you can verify by disabling the iPhone GPS location service and then go to the RunKeeeper. Sometimes, the app is able to allow you launching the iPhone Pref app by a Settings button in an alert view.
I don't think the RunKeeper developers have specific privileges from Apple.