I need a sample app for Google Cloud Messaging. with an example server for testing my application. can anyone help me with this?
I need a sample server to check my code, I already wrote the code, but I donβt know how it will work or not. I don't know server-side coding so anyone can help me with this. here is my code
earning service
package com.example.pushnotificationsample; import android.content.Context; public class GCMIntentService extends GCMBaseIntentService { protected GCMIntentService(String senderId) { super(senderId);
my main activity
package com.example.pushnotificationsample; import android.app.Activity; import com.google.android.gcm.GCMRegistrar; import android.os.Bundle; import android.util.Log; public class MainActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); GCMRegistrar.checkDevice(this);
android google-cloud-messaging android-c2dm
Dinu Jul 13 2018-12-12T00: 00Z
source share