Closed toddtsic closed 7 years ago
I asked pushtry.com the urls they are using for production vs dev and they write:
When Production checkbox is enabled it just changes the url to gateway.push.apple.com:2195
For development we use gateway.sandbox.push.apple.com:2195
I then changed my sever code to gateway.sandbox.push.apple.com:2195 from api.development.push.apple.com:2197
and iOS 9.3 then starts working but iOS 10.3 does not
That makes me think that the issue is going to be with 1) xcode configuration or 2) the plugin
In consideration of 1), xcode warnings in the console on running iOS10.3 are different, (will include below), the most glaring difference distinct to iOS10.3 is:
2017-04-25 07:37:20.987371-0700 TSICMobile[892:261247] libMobileGestalt MobileGestaltSupport.m:153: pid 892 (TSICMobile) does not have sandbox access for frZQaeyWLUvLjeuEK43hmg and IS NOT appropriately entitled 2017-04-25 07:37:20.987403-0700 TSICMobile[892:261247] libMobileGestalt MobileGestalt.c:550: no access to InverseDeviceID (see rdar://problem/11744455)
Has anyone gotton iOS 10.3 to work on xcode8.3? Could you share xcode settings?
XCode console output for iOS test:
2017-04-25 07:37:18.099360-0700 TSICMobile[892:261214] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///private/var/mobile/Containers/Data/Application/39464CED-9BED-4F73-AB5F-70364A30ED43/Library/Cookies/Cookies.binarycookies
2017-04-25 07:37:18.148367-0700 TSICMobile[892:261214] Apache Cordova native platform version 4.3.1 is starting.
2017-04-25 07:37:18.149069-0700 TSICMobile[892:261214] Multi-tasking -> Device: YES, App: YES
2017-04-25 07:37:18.218916-0700 TSICMobile[892:261214] Using UIWebView
2017-04-25 07:37:18.220095-0700 TSICMobile[892:261214] [CDVTimer][handleopenurl] 0.070035ms
2017-04-25 07:37:18.222123-0700 TSICMobile[892:261214] [CDVTimer][intentandnavigationfilter] 1.968980ms
2017-04-25 07:37:18.222218-0700 TSICMobile[892:261214] [CDVTimer][gesturehandler] 0.051975ms
2017-04-25 07:37:18.239064-0700 TSICMobile[892:261214] [CDVTimer][file] 16.665995ms
2017-04-25 07:37:18.268074-0700 TSICMobile[892:261214] [CDVTimer][splashscreen] 28.949976ms
2017-04-25 07:37:18.276106-0700 TSICMobile[892:261214] [CDVTimer][statusbar] 7.955968ms
2017-04-25 07:37:18.277606-0700 TSICMobile[892:261214] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2017-04-25 07:37:18.278596-0700 TSICMobile[892:261214] [MC] Filtering mail sheet accounts for bundle ID: com.teamsportsinfo.api, source account management: 1
2017-04-25 07:37:18.280733-0700 TSICMobile[892:261214] [MC] Result: YES
2017-04-25 07:37:18.280849-0700 TSICMobile[892:261214] [MC] Filtering mail sheet accounts for bundle ID: com.teamsportsinfo.api, source account management: 1
2017-04-25 07:37:18.281424-0700 TSICMobile[892:261214] [MC] Result: YES
2017-04-25 07:37:18.293397-0700 TSICMobile[892:261214] [CDVTimer][socialsharing] 17.225027ms
2017-04-25 07:37:18.294645-0700 TSICMobile[892:261214] [CDVTimer][keyboard] 1.136959ms
2017-04-25 07:37:18.294728-0700 TSICMobile[892:261214] [CDVTimer][TotalPluginStartup] 74.707985ms
2017-04-25 07:37:18.303976-0700 TSICMobile[892:261214] createNotificationChecker
2017-04-25 07:37:18.304019-0700 TSICMobile[892:261214] not coldstart
2017-04-25 07:37:18.305423-0700 TSICMobile[892:261214] active
2017-04-25 07:37:18.305600-0700 TSICMobile[892:261214] PushPlugin skip clear badge
2017-04-25 07:37:18.423432-0700 TSICMobile[892:261214] [MC] Reading from public effective user settings.
2017-04-25 07:37:18.564355-0700 TSICMobile[892:261214] Resetting plugins due to page load.
2017-04-25 07:37:20.987371-0700 TSICMobile[892:261247] libMobileGestalt MobileGestaltSupport.m:153: pid 892 (TSICMobile) does not have sandbox access for frZQaeyWLUvLjeuEK43hmg and IS NOT appropriately entitled
2017-04-25 07:37:20.987403-0700 TSICMobile[892:261247] libMobileGestalt MobileGestalt.c:550: no access to InverseDeviceID (see <rdar://problem/11744455>)
2017-04-25 07:37:21.075891-0700 TSICMobile[892:261214] THREAD WARNING: ['File'] took '10.533691' ms. Plugin should use a background thread.
2017-04-25 07:37:21.103553-0700 TSICMobile[892:261214] Ionic Native: deviceready event fired after 2299 ms
2017-04-25 07:37:21.103612-0700 TSICMobile[892:261214] DEVICE READY FIRED AFTER 2208 ms
2017-04-25 07:37:21.103630-0700 TSICMobile[892:261214] OPEN database: __tsicmobiledb
2017-04-25 07:37:21.103960-0700 TSICMobile[892:261214] new transaction is waiting for open operation
2017-04-25 07:37:21.115429-0700 TSICMobile[892:261214] OPEN database: __tsicmobiledb - OK
2017-04-25 07:37:21.115480-0700 TSICMobile[892:261214] DB opened: __tsicmobiledb
2017-04-25 07:37:21.163731-0700 TSICMobile[892:261214] LoginPage: InitializeLoginPage
2017-04-25 07:37:21.452574-0700 TSICMobile[892:261214] Finished load of: file:///var/containers/Bundle/Application/E6BA92DF-716A-41C8-A443-9DD8CEFF9D48/TSICMobile.app/www/index.html
2017-04-25 07:37:21.542922-0700 TSICMobile[892:261214] eventorrolechanged trap in app.component
2017-04-25 07:37:22.705756-0700 TSICMobile[892:261214] ConfigurePush: Start
2017-04-25 07:37:22.705833-0700 TSICMobile[892:261214] isIOS:true
2017-04-25 07:37:22.705857-0700 TSICMobile[892:261214] isANDROID:false
2017-04-25 07:37:22.713948-0700 TSICMobile[892:261246] Push Plugin register called
2017-04-25 07:37:22.714010-0700 TSICMobile[892:261246] PushPlugin.register: setting badge to false
2017-04-25 07:37:22.714022-0700 TSICMobile[892:261246] PushPlugin.register: clear badge is set to 0
2017-04-25 07:37:22.714040-0700 TSICMobile[892:261246] PushPlugin.register: better button setup
2017-04-25 07:37:22.716745-0700 TSICMobile[892:261246] GCM Sender ID (null)
2017-04-25 07:37:22.716781-0700 TSICMobile[892:261246] Using APNS Notification
2017-04-25 07:37:22.725772-0700 TSICMobile[892:261214] Push Plugin register success: <f2b86bc8 24e55d4c fd02cab8 40d35d1e 9602d673 0f0c3d32 4a203ada e5ff28cd>
2017-04-25 07:37:22.743246-0700 TSICMobile[892:261214] f2b86bc824e55d4cfd02cab840d35d1e9602d6730f0c3d324a203adae5ff28cd
2017-04-25 07:37:22.743300-0700 TSICMobile[892:261214] DEBUG Device LATESTDEVICEID: 291EA5D3-4152-4D14-836A-3DF1CD4283CB
2017-04-25 07:37:22.743321-0700 TSICMobile[892:261214] DEBUG Device DEVICEID: 291EA5D3-4152-4D14-836A-3DF1CD4283CB
2017-04-25 07:37:22.743339-0700 TSICMobile[892:261214] DEBUG device TOKEN: f2b86bc824e55d4cfd02cab840d35d1e9602d6730f0c3d324a203adae5ff28cd
2017-04-25 07:37:22.743357-0700 TSICMobile[892:261214] DEBUG device TYPE: ios
@toddtsic if you open the project in Xcode can you check to see if under the capabilities that push notification is turned on? This is required for iOS 10.
Simon,
Thanks for responding.
Yes: my Capabilities include: Push Notifications: On, Add the Push Notifications feature to your App ID, Add the Push Notifications entitlement to your entitlements file
xcode 8.3.2 console shows:
2017-04-25 08:25:20.035419-0700 TSICMobile[253:8305] libMobileGestalt MobileGestaltSupport.m:153: pid 253 (TSICMobile) does not have sandbox access for frZQaeyWLUvLjeuEK43hmg and IS NOT appropriately entitled 2017-04-25 08:25:20.035456-0700 TSICMobile[253:8305] libMobileGestalt MobileGestalt.c:550: no access to InverseDeviceID (see rdar://problem/11744455)
Have been researching, haven't found anything useful other than "Apple Scripts error, nothing you can do about it..."
Greatly appreciate any thoughts you may have.
Todd
On Tue, Apr 25, 2017 at 8:08 AM, Simon MacDonald notifications@github.com wrote:
@toddtsic https://github.com/toddtsic if you open the project in Xcode can you check to see if under the capabilities that push notification is turned on? This is required for iOS 10.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/phonegap/phonegap-plugin-push/issues/1691#issuecomment-297061005, or mute the thread https://github.com/notifications/unsubscribe-auth/AJeir2jzKW3ez9fqybch0Q-F5DF7jh2Bks5rzgxmgaJpZM4NGx-q .
-- Todd Greenwald President, TeamSportsInfo.com tgreenwald@teamsportsinfo.com 410-703-3450
OMG got it, almost...!
I applied:
http://stackoverflow.com/questions/37806538/code-signing-is-required-for-product-type-application-in-sdk-ios-10-0-stic#answer-39498874
With that I got iOS 10.3 to receive one push notification, nothing after...
Anyone else out there using Ionic and iOS 10+ with any advice?
Todd
Got the same problem i'm using the plugin with firebase and the device registers but doesn't receive notifications, i have the same enviroment that you and nothing seems to work
Hey guys I have the same issue. Also using firebase plugin, the device registers but the notification doesn't come. Any advice?
I change the library to cordova-fcm and now works fine, i don't know what was the problem with ios with these library in android was working without any problem, i'm sure i was doing something wrong :disappointed:
This thread has been automatically locked.
Details:
Previously Android/iOS both working on XCode 8.0.0, phonegap 1.8.4 until I learned iOS 10 users not receiving notifications.
Updgraded to XCode 8.3.2, phonegap 1.10.2 ==> Android fine, iOS registers but doesn't notify for iOS 9.3, and 10.3 (my test devices).
XCode console showing successfull registration:
Action Taken: Remade apn certificates (used fastlane pem)
Testing:
Run XCode project on iOS device (either 9.3 or 10.3 device) and grab the device token from the XCode console.
I then plugin token plus fastlane pem created certificates (.p12 or .pem) into pushtry.com
Test Results: Both devices receive notification (and I can trap in debugger in the on.Notification section of the ionic service (code below)).
Of note, only way I can fail at pushtry.com is if I check "production" checkbox.
XCode console for successfull receipt of push test from pushtry.com:
Ionic2 app is served by asp.net core web api site (c# code below)
Posts in c# are sent to APNS using host: api.push.apple.com port: 2197 cert: fastlane pem created production .p12
(Have also tried host: api.development.push.apple.com and fastlane pem created development .p12, both scenarios result in successful registration (evidenced by XCode console), and both fail to trap on.notification (with app in background or in foreground))
My gut is telling me that it has to be a payload formatting issue...
I'm dead in the water if I can't support iOS10, greatful for any assistance...
Cordova and Ionic details:
Ionic ConfigurePush():
c# code calling APNS: