Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

iOS 13 and OneSignal Registration Issues
Started by MBD Oct 08 2019 09:48 AM

9 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

MBD

[GLOBAL: userInfoPane.html]
MBD
  • Contributor

  • 389 posts
  • Corona SDK

Is anyone else aware of an iOS 13 related issue with using OneSignal? I'm getting this error now in my enterprise Corona app (native but using Corona as UI)

 

Couldn't read values in CFPrefsPlistSource<0x28327c900> (Domain: group.xxxxx.xxxxxxx, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null), Contents Need Refresh: Yes): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd

2019-10-08 12:00:08.956405-0500 xxxxxxx[5211:2433529] ERROR: Error registering with OneSignal: Error Domain=OneSignalError Code=400 "(null)" UserInfo={returned={
    errors =     (
        "[\"Identifier invalid format.\"]"
 
The app builds and installs but won't register any iOS 13 devices with OneSignal
 
Note: I am building in xCode 11
 
OneSignal posted this relating to iOS 13 challenges: https://onesignal.com/blog/ios-13-introduces-4-breaking-changes-to-notifications/
 
But it's not specific to Corona / Native
 
https://github.com/OneSignal/OneSignal-iOS-SDK/issues/529 specifies that xCode 10 or below will still build and work for OneSignal iOS apps.
 
OneSignal has released some native source to the "fix" for iOS 13 building on xCode 11 - but it doesn't help us Corona plugin users. https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/2.10.1
 
Any insight here guys?
 
Thanks!
 
 


[TOPIC: post.html]
#2

tech47

[GLOBAL: userInfoPane.html]
tech47
  • Enthusiast

  • 53 posts
  • Corona SDK

Hi,

 

We have noticed this problem as well, occurs with 2019.3538 and xCode 11.1

 

Any information on a fix?

 

Regards,

 

Keetiz tech



[TOPIC: post.html]
#3

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,614 posts
  • Enterprise

OneSignal maintains their own Corona plugin. I would suggest reaching out to them and ask them to update it.

 

Rob



[TOPIC: post.html]
#4

josh_OneSignal

[GLOBAL: userInfoPane.html]
josh_OneSignal
  • Enthusiast

  • 69 posts
  • Corona SDK

The token issue was fixed in our native SDK in OneSignal-iOS-SDK version 2.10.1. The OneSignal Corona wrapper / bridge SDK is still using an older version however. We will be updating the SDK soon to fix this issue.

 

As a workaround you if you build your app with Xcode 10.3 then iOS 13 devices will be able to register without an issue. This works as iOS 13 will detect how the app was linked and fallback to the old token format.



[TOPIC: post.html]
#5

MBD

[GLOBAL: userInfoPane.html]
MBD
  • Contributor

  • 389 posts
  • Corona SDK

Thanks for letting me know! I am downloading xCode 10.3 now as I'm building using 11 otherwise. Hopefully, this gets me through until the SDK gets updated.



[TOPIC: post.html]
#6

guy.stockwell

[GLOBAL: userInfoPane.html]
guy.stockwell
  • Contributor

  • 105 posts
  • Corona SDK

When do you expect a fix?



[TOPIC: post.html]
#7

usmanmughal.uog

[GLOBAL: userInfoPane.html]
usmanmughal.uog
  • Enthusiast

  • 78 posts
  • Corona SDK

@josh_OneSignal any update on this? Is this issue fixes in current oneSignal plugin?

Regards,

Usman Mughal



[TOPIC: post.html]
#8

usmanmughal.uog

[GLOBAL: userInfoPane.html]
usmanmughal.uog
  • Enthusiast

  • 78 posts
  • Corona SDK

@Rob I have question for you here. If a developer has custom backend and app uses corona notification plugin(https://docs.coronalabs.com/plugin/notifications-v2/index.html), That app would be effected with this change in iOS 13?

Usman Mughal



[TOPIC: post.html]
#9

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,614 posts
  • Enterprise

I'm sorry Usman. I'm not clear as to what you're asking about. We recommend that you use the notification-v1 plugin for iOS since the v2 is mostly support for the Firebase FCM system, which Google had hoped could work for both Android and iOS, but really hasn't worked all that well.

 

Rob



[TOPIC: post.html]
#10

MBD

[GLOBAL: userInfoPane.html]
MBD
  • Contributor

  • 389 posts
  • Corona SDK

After some study, trial and error - and finally just throwing in the towel, the only way I got push alerts to work with Corona & One signal was to go back to xCode 10.3 and load the individual phone profiles as outlined here:

 

https://stackoverflow.com/questions/56521200/xcode-fails-to-build-on-real-ios-device-running-ios-13

 

 

It also fixed a receipt problem I was having with Corona enterprise (old build), and Apple receipt validation / truncation.

 

Everything builds the exact same once the support profiles are loaded.




[topic_controls]
[/topic_controls]