-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Push message not working when App is installed from xcode #911
Comments
dmeij
changed the title
Push message not working when installed from xcode
Push message not working when App is installed from xcode
Oct 12, 2018
Found the solution in a different plugin: phonegap/phonegap-plugin-push#2518. It's a cordova issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Sending a Push message to an iOS phone device fails when the App is installed from Xcode. If I download the App from the App Store, it does work.
To Reproduce
When I open the App for the first time I get the push message grant request. When I grant the permission I get the FCM token. With this token I try to send a push message in the Firebase test console. But it fails.
Plugin Version
2.0.0
Smartphone (please complete the following information):
Additional context
I think this is causes by the way it is installed. Not from the App Store (Prod.) but from Xcode (Sandbox). Maybe Firebase tries to send the push message to the production URL instead of the sandbox URL. I tries adding "[[FIRMessaging messaging] setAPNSToken:deviceToken type:FIRMessagingAPNSTokenTypeUnknown];" in the "didRegisterForRemoteNotificationsWithDeviceToken" function, but no luck :(. When I try to send a test push message with CURL, I get the error: "NotRegistrered". When I download the App from the App Store, the push messaging works fine.
The text was updated successfully, but these errors were encountered: