Receive Parse notification using custom broadcastreceiver

后端 未结 4 2066
攒了一身酷
攒了一身酷 2021-02-06 10:55

Am using parse notification in my app. Am receiving notification alert using GcmBroadcastReceiver. But am seeing lot of notification receiving to my app. I thought to update not

4条回答
  •  滥情空心
    2021-02-06 11:32

    Replace it

    
            
                
                
                
            
    
    

    to your:

     
            
                
                
                
            
        
    

    and create class:

    public class MyReceiver extends ParsePushBroadcastReceiver {
    
        protected void onPushReceive(Context mContext, Intent intent) {
        //enter your custom here generateNotification();
        }
    
    }
    

提交回复
热议问题