Register fail iOS 10. #1154
Comments
@samukt what version of the iOS 10 beta do you have installed? I tested this before vacation and it was working okay. |
iOS 10 (beta 4) I'm using the same version of the app (production in app store) in both versions of iOS. |
@samukt is your iOS 10 app in production? Make sure you are signing the iOS 10 app with the correct certificate. You might be signing with production and talking to development APNS server or vice versa. |
@samukt - what version of the phonegap-plugin-push version are you using? PS, thank you that worked! |
Curious if there are plans for this functionality to be generated with a newer version of this Push Plugin? It seems that enabling this capability may be a requirement for XCode 8 going forward |
@briananderson1222 - I totally agree, it's going to be a pain if we need to manually do it. @macdonst - is there any chance of this? |
I can confirm this is a requirement for xcode8 and iOS10 So it looks like if you add to .entitlements:
everything should be set for sandbox at least... will update this thread when i see the production one |
Looking into a solution now. |
I talked to @shazron about this and we will need to make some changes in cordova-ios 4.3.0 in order to support the .entitlements file as we want to fix this not only for |
Watch this issue: https://issues.apache.org/jira/browse/CB-11854 |
On my file picker plugin @EddyVerbruggen added a hook to write the .entitlements file, can't we just do that? |
@jcesarmobile something like that was my backup plan until we can see this fix come through. It'd be nice though if cordova supported this without needing this specific plugin to implement its own hook |
Hooks are undesirable for cloud builders like PhoneGap Build, that can't run hooks Sent a PR: apache/cordova-ios#256 |
PR merged in, should be in for the future cordova-ios 4.3.0 release. You can test this with the nightly platform released tonight at 8PM PDT. |
Assigning this issue to the 1.9.0 milestone as it will force users to take cordova-ios 4.3.0. |
Is upgrading to cordova 4.3.0 nightly enough or do we still need to manually enable the entitlement? |
@shazron what is the recommended way of adding properties to these entitlement files? |
@briananderson1222 the plugin.xml should have something like
|
What if you are not in Debug, but in release:
what should be entered in stead of ??? |
Ios 10.0.8 (1.8.2 push plugin) not receiving notifications. After checking in xcode too. Registering is fine but push.on is not firing in any app state. console.log(push) after device is registered for push notification. |
@Bart-Holland it's supposed to be |
@jcesarmobile Thanks doesn't seem to work for me though. Something else is not going well 🎱 |
@Bart-Holland I believe you need to wait for Release 1.9.0 or a related PR (which I have not seen) as this is a change in the |
Good morning, was able to get everything "working", you must use the nightly build of the cordova ios platform until they release 4.3, the latest version (4.2.1) does not work. You need that for a few reasons, for me its how i was able to get the team name and certs setup properly using the build.config file. Also there is a bug where notifications received when the app was running in background were not working. In addition to that you need to use the latest 1.8.2 of this, however as per the above, you need to manually modify the entitlements files, (debugger gets development key and release get production key) . We are using jenkins for CI so it was easy enough to plug in there, however for obvious reasons it should be a part of this plugin, when can we expect 1.9 release? I'm sure that there are many other things for xcode 8 / ios 10 that we want to add, but this is a severe bug, as all push notifications don't work after the upgrade, so its somewhat critical for me, and i'm sure many others. |
Is there any workaround for building Cordova apps from Visual Studio? Running my app on an ios10 device gives an error saying "no valid 'aps-environment' entitlement string found for application". |
@macdonst Maybe you should commit a big hint into the readme so that people see that the plugin is actually not working with iOS 10. They all investigate time to create bug reports with stack traces. |
iOS10 registration will fail until I confirmed that iOS9.3.5 works fine, but iOS10.0.2 got below error.
Btw, below setting is temporary solution?
I tried that. but does not solve problem. [edited] I upgraded I don't know what is a problem... |
No it needs to go into the root of out output Xcode project not the cofig xml. Sent from my iPhone
|
Hey guys, we need to remember to maintain support for both development and production aps environments:
versus
|
Actually I don't believe you do. Xcode handles that for you. |
It does if you manually open and turn it on but since Cordova doesn't do that the build fails. Full automation can't be done without the file Sent from my iPhone
|
Sorry, I wasn't clear. My point was that this file doesn't need to be updated to a value of "production". The provisioning process handles that for you but it never updates the file on disk to say "production". But yes, the file does need to exist for the build. |
iOS 10 registration fails with cordova-ios 4.3.0 plugin. With older plugin 4.2.1 works fine. |
This thread has been automatically locked. |
It's working fine on iOS 9, but when i test on iOS 10 (beta) it doesn't work.
Reproduce Scenario (including but not limited to)
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
iOS10
I think it needs to be known because iOS 10 is coming...
The text was updated successfully, but these errors were encountered: