Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'initWithTitle:message:delegate:cancelButtonTitle:otherButtonTitles:' available on iOS - Use UIAlertController instead. #451

Closed
cassmtnr opened this issue Nov 30, 2018 · 3 comments

Comments

@cassmtnr
Copy link

cassmtnr commented Nov 30, 2018

Description:

Finished the configuration for the iOS and got the error below:

screenshot at nov 30 20-45-43

Environment

Podfile:

pod 'react-native-onesignal',
    :path => "../node_modules/react-native-onesignal/react-native-onesignal.podspec",
    :inhibit_warnings => true

target 'Cestou' do
  target 'CestouTests' do
    inherit! :search_paths
  end
end

target 'OneSignalNotificationServiceExtension' do
    pod 'OneSignal', '>= 2.9.3', '< 3.0'
end
@Nightsd01
Copy link
Contributor

@cassianomon Closing because this is a known issue (#396)

To resolve the issue, please go to the Xcode project settings for your OneSignalNotificationServiceExtension target and set "Require Only App-Extension Safe API" to No

In our 3.0 release we will be fixing this issue, but in the mean time, that should be a good workaround.

screen shot 2018-11-30 at 3 36 55 pm

@cassmtnr
Copy link
Author

cassmtnr commented Dec 1, 2018

@Nightsd01 It's already set to NO, I already went through known issues

@cassmtnr
Copy link
Author

cassmtnr commented Dec 3, 2018

I reseted all my changes and just did:
npm install react-native-onesignal --save
react-native link react-native-onesignal

and used the javascript starter of OneSignal and it all went well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants