Good morning,
I spent the last three days trying to solve an issue.
My app has been distributed on the apple store since last year and everything went well until last month when, after the ios 10.1 upgrade, the application began crashing when loaded on upgraded devices.
My application recives push messages sent by a php script.
So I upgraded my b4i to version 3.5 to debug the application.
I rebuilt all expired apple certificates: wildcard developer, push developer, distribution and so on
Using the new wildcard I built b4i bridge app, installed and run it on my ipad with IOS 9.3.5 with no problem;The app registers on APN and receives the PushToken, my php script sends push messages using the APN and the app receives it.
I tried the same with an old iphone IOS 7.3: the bridge works, I can debug my application but cannot register in APN and I get
but when I try to build B4i bridge I get the following error
Wildcard certificates cannot be used with push services so How may I debug my application on IOS 10.1?
I spent the last three days trying to solve an issue.
My app has been distributed on the apple store since last year and everything went well until last month when, after the ios 10.1 upgrade, the application began crashing when loaded on upgraded devices.
My application recives push messages sent by a php script.
So I upgraded my b4i to version 3.5 to debug the application.
I rebuilt all expired apple certificates: wildcard developer, push developer, distribution and so on
Using the new wildcard I built b4i bridge app, installed and run it on my ipad with IOS 9.3.5 with no problem;The app registers on APN and receives the PushToken, my php script sends push messages using the APN and the app receives it.
I tried the same with an old iphone IOS 7.3: the bridge works, I can debug my application but cannot register in APN and I get
After this I thought I could debug my app with IOS 10 or greater and, as suggested, I added the following lines in my codeB4IExceptionWrapper: Error Domain=NSCocoaErrorDomain Code=3000 no authorization string for 'aps-environment'
B4X:
#ATSEnabled: True
' attenzione usa string release per la versione definitiva
#Entitlement: <key>aps-environment</key><string>development</string>
'#If RELEASE
'#ProvisionFile: distribuzione_cup4med.mobileprovision
'#CertificateFile: ios_distribution.cer
'#Else
' vecchia versione prima di entiEntitlement
#ProvisionFile: sviluppatore.mobileprovision
#CertificateFile: ios_development.cer
' nuova versione per bridge
'#ProvisionFile: cup4med_bridge.mobileprovision
'#CertificateFile: ios_development.cer
'#END IF
I also tried to build a non wildcard certificate provision profile cup4med_bridge.mobileprovision, with it I can build a bridge application but I cannot debug mine.Check dependencies
Provisioning profile "sviluppatore" doesn't include the aps-environment entitlement.
Code signing is required for product type 'Application' in SDK 'iOS 10.1'
Error: ** BUILD FAILED **
Wildcard certificates cannot be used with push services so How may I debug my application on IOS 10.1?