Thejadav.in

Thejadav.in

Android – Implement Onesignal (Alternative for firebase)

Onesignal is one of the best alternative for firebase push notification. It is easy to use, free for push notification, however it has 30K limit for subscribers. Onesignal almost support all kind of operating systems.It has 860K+ users, who are currenlty using onesignal. For more you can visit its official site.

android retrofit example

Make your first API call using retrofit

Add retrofit and GsonConverter in your project

why to use GsonConverter here?. It will be useful for converting JsonObject directly to Java class or Kotlin class. So, we only need to pass our models.

implementation 'com.squareup.retrofit2:retrofit:2.6.2'
implementation 'com.squareup.retrofit2:converter-gson:2.6.2'
implementation 'com.google.code.gson:gson:2.8.5'