Closed kgj-chated closed 3 years ago
Howdy, Thank you for your very detailed issue.
We just released a new version of the SDK. Can you upgrade and retry? If you are unsuccessful, we can dig deeper to see what your issue may be.
Hi @rgomezp I have updated the react-native-onesignal
package to ^4.0.4
after doing clean install of node packages and Pods. Still the same issue is there. Please have a look!
Exactly same issue here, any fix!?
The OneSignalNotificationServiceExtension
is an independent target, it doesn't depend on React Native or any Google libraries.
I would expect your pod file to just have a single pod for OneSignal and nothing else to do this:
target 'OneSignalNotificationServiceExtension' do
pod 'OneSignal', '>= 3.0', '< 4.0'
end
From the error it looks like Google Services is somehow automatically being added to the OneSignalNotificationServiceExtension
when it should not.
If simply your Podfile
to the above for the OneSignalNotificationServiceExtension
entry does not work can you provide step-by-step instructions on how to reproduce the issue with a new project?
Closing due to no response.
I am trying to integrate this SDK into an iOS app. I am getting this build error:
info: Exec FirebaseCrashlytics Run from Pods error: Could not get GOOGLE_APP_ID in Google Services file from build environment
I had faced these other issues too in the process of following docs from here: https://documentation.onesignal.com/docs/react-native-sdk-setup#step-4---install-for-ios-using-cocoapods-for-ios-apps
Issue 1:
openUrl is unavailable: not available on iOS (App Extension)
Solved by following advice from here: https://github.com/facebook/react-native/issues/25792#issuecomment-517295859Issue 2:
"AccessibilityResources.bundle" not found
Solved by following advice from here: https://github.com/facebook/react-native/issues/29709#issuecomment-696540223Description: Directory structure inside
iOS
:OneSignalNotificationServiceExtension
Info.plist
NotificationService.Swift
OneSignalNotificationServiceExtension.entitlements
Verb
AppDelegate.m
Info.plist
GoogleService-Info.plist
Podfile
...Podfile
pod update
terminates successfully with this logEnvironment
Steps I followed
yarn
into your project4.4 Add App Group
): https://documentation.onesignal.com/docs/react-native-sdk-setup#step-4---install-for-ios-using-cocoapods-for-ios-apps Note: Adding group asked for a new certificate which I don't want to do currently so as to keep things simple!I am not familiar with iOS native development, but as far as I understand, I can see that the target
OneSignalNotificationServiceExtension
is also installing all the pods mentioned under the targetVerb
which doesn't feel right to me. Shouldn'tOneSignalNotificationServiceExtension
only care about `pod 'OneSignal', '>= 3.0', '< 4.0'?If I should be adding some more info, kindly let me know!