I can not get registration ID from Android GCM

前端 未结 6 1288
小蘑菇
小蘑菇 2020-12-03 03:38

Although I try other answer about this problem, it can\'t be solved. Sender ID is correct, permissions are added, API key is true.

I use this post for creating the p

6条回答
  •  清歌不尽
    2020-12-03 04:15

    I have same problem after 1 day struggle I find solution. First i Put my GCM Related Code in To My Main Package and make change according to My Package in androidManifest.xml

    i give you simple example. My project name is GCMExample and i have Three package 1. com.examle.GCMExample(Main Package) , 2. com.examle.GCMExample.activity(Second Package) , 3. com.example.GCMExample.adapter(Third Package)

    I am not Getting Registration Id When My GCM Related Class File Into My Second Package

    My GCM Related class like 1. GCMIntentService , 2. ServerUtilities , 3. CommonUtilities 4. WakeLocker put Into My Main Package com.example.GCMExample

    also my androidManifest.xml

         
         
         
         
    
         
    
         
    
        
    
            
            
            
            
            
    
            
          
      
    
    
    

提交回复
热议问题