Skip to content
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

Closed
dmeij opened this issue Oct 12, 2018 · 1 comment
Closed

Push message not working when App is installed from xcode #911

dmeij opened this issue Oct 12, 2018 · 1 comment

Comments

@dmeij
Copy link

dmeij commented Oct 12, 2018

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):

  • Device: iPhone6s
  • OS: 11.4.1
  • Browser Cordova browser

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.

@dmeij 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
@dmeij
Copy link
Author

dmeij commented Oct 12, 2018

Found the solution in a different plugin: phonegap/phonegap-plugin-push#2518. It's a cordova issue.

@dmeij dmeij closed this as completed Oct 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant