| Insider | NPM JS react-native-insider | InsiderAcademy |
This Demo contains simple methods that you can use with the Insider SDK.
Install all npm packages by running the npm install command in the home directory.
Replace partner name and app group value in app/_layout.tsx with your info.
Note: Can easily find the warnings added as comments by searching the FIXME-INSIDER key in the project and you can quickly make the necessary arrangements for the project.
- The expo prebuild command was executed, generating the necessary native project files (android and ios directories) for both Android and iOS platforms. Please review the Expo docs.
- Due to the inconsistent behavior of the iOS push token swizzling method, the
[Insider registerDeviceTokenWithApplication:application deviceToken:deviceToken];method has been used within the didRegisterForRemoteNotificationsWithDeviceToken method in the AppDelegate.mm file. - The Insider SDK includes swizzle methods for iOS push delegate methods. To ensure these methods function correctly, you must add the command
UNUserNotificationCenter.currentNotificationCenter.delegate = self;to the AppDelegate.mm file.
- Add
google-services.jsonandagconnect-services.jsontoandroid/appfolder. - Add your keystore file to
android/appfolder and replacesigningConfigsattributes inandroid/app/build.gradlefile with your info. - Replace manifestPlaceholders -> partner value with your partner name in
android/app/build.gradlefile. (This step is important to add test device with QR or Email in the panel.) - And run project with
npm run androidcommand.
- Open XCode and check the app group and bundle identifier for all targets.
- Replace
insiderURL type in main target Info -> URL Types with your partner name. (This step is important to add test device with QR or Email in the panel.) - Change APP_GROUP variables value in
InsiderNotificationService/NotificationService.mandInsiderNotificationContent/NotificationViewController.mfiles. - And run project with
npm run ioscommand.