Clicking on Notification is not starting intended activity?

后端 未结 7 1734
野性不改
野性不改 2020-11-30 09:32

I am using GCM in my application and also using NotificationManager to Create a Notification whenever GCM message is received.Till now everything is working perfectly and GC

7条回答
  •  悲哀的现实
    2020-11-30 10:25

    The activity that you want to launch has to be designated as a LAUNCHER activity in your manifest - otherwise it won't launch via a Pending Intent. Add the following to your in the AndroidManifext.xml

    
    
        
    
    
    

    Otherwise you will need to use an Activity that is already designated as a LAUNCHER (such as your MAIN activity)

提交回复
热议问题