onesignal-cordova-plugin
Version:
OneSignal is a high volume Push Notification service for mobile apps. In addition to basic notification delivery, OneSignal also provides tools to localize, target, schedule, and automate notifications that you send.
29 lines (17 loc) • 714 B
Markdown
# Setup
First install the packages e.g. `npm i`
## Android
For Android, make sure to use Java 17 as other versions may be incompatible. E.g.
```
brew install openjdk@17
```
Make sure Android SDK tools are properly installed. Check if adb is present.
```
adb --version
```
Then run `ionic capacitor run android` and select the device to run on. This should open the emulator either standalone or in the Android Studio window.
## iOS
For iOS, you can run `ionic capacitor run ios`.
## Testing
**IMPORTANT**: For Android, the example app may open up but not be recognized as being in the foreground. So swipe up in the emulator then reopen the app.
Then should see some dialogs appear which you close out.