简体   繁体   中英

IOS not receiving GCM push notifications

I have a project build by swift in xcode 7 and i apply gcm to my project. I just received data from gcm but not showing alert notification in my ios devices. My AppDelegate

I've encountered something similar. The reason mine wasn't working was because of the kGGLInstanceIDAPNSServerTypeSandboxOption value. I had to set it to true for debug builds and false for distribution builds.

You're posting an NSNotificationCenter type of notification, thats not something the user sees, its not an alert notification which the user can see. You want UILocalNotification

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM