i have sent push notification using asp.net c# gcm android mobiles.
but tried different kinds of code arr return missing registration error, please me.
try pushsharp. it's pretty straightforward. , check instruction - how configure & send gcm google cloud messaging push notifications using pushsharp
var push = new pushbroker(); //registering gcm service , sending android notification push.registergcmservice(new gcmpushchannelsettings("theauthorizationtokenhere")); //fluent construction of android gcm notification //important: android must use own registrationid here gets generated within android app itself! push.queuenotification(new gcmnotification().fordeviceregistrationid("device registration id here") .withjson("{\"alert\":\"hello world!\",\"badge\":7,\"sound\":\"sound.caf\"}"));
you can install via nuget.
Comments
Post a Comment