-
Notifications
You must be signed in to change notification settings - Fork 25
Enabling OneSignal notifications
Sarsa Murmu edited this page Jul 1, 2024
·
5 revisions
OneSignal can be used to send your users notifications.
- First create a OneSignal app
- Now open your app in the OneSignal dashboard
- Open settings
- Switch to
Keys & IDs
tab - Copy your OneSignal App ID
- Open your app's
build.gradle
(app/build.gradle
orbuild.gradle (Module: app)
) - Find this line (around line 56) and remove
//
(double slash)//implementation 'com.onesignal:OneSignal:[5.0.0, 5.99.99]'
- Sync Gradle
- Open
app/src/main/java/.../applications/CandyBar.java
- Go to line
6
and you will find//import
, remove//
(double slash) - Go to line
15
and22
and remove/*
and*/
- On line 20, replace
YOUR_ONESIGNAL_APP_ID
with your OneSignal App ID - Go to line
36
and44
and remove/*
and*/
OneSignal notification is now enabled in your app. Go and send some notifications ;)
If you want more help then join Our Telegram Group.
- Wallpaper JSON
- Setting up the Config JSON
- Advanced Dashboard configurations
- Changing fonts
- Changing navigation drawer icons
- Changing icons of the apply section
- Replacing icon names in icon preview
- Enabling OneSignal notifications
- Enabling InApp purchases (donations and premium requests)
- Customizing the analog clock widget
- Enabling Kustom presets