The Push library is a customized GCM library enabling the app to receive a push notification from special web based push notification service.
for enabling app to register for push notification service the Push class should be initialized in onCreate method as you see in the following code.
I know that Push.jar and google_play_services.jar including res folder of both should be added to B4a
and I should call Push.initialize(this,true) in Activity_Create . but I did not get clearly from tutorials how
to write a java wrapper for this purpose
for enabling app to register for push notification service the Push class should be initialized in onCreate method as you see in the following code.
I know that Push.jar and google_play_services.jar including res folder of both should be added to B4a
and I should call Push.initialize(this,true) in Activity_Create . but I did not get clearly from tutorials how
to write a java wrapper for this purpose
B4X:
import co.mona.push.Push;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Push.initialize(this, true);
}