Thank you Mukesh :)

I have one more query regarding push notification here

If the user upgrades his O.S will GCM generate new token ID??Or using old 
token can we get pushnotification ????

Do we need to handle this case from App perspective ????


Thanks in advance

On Monday, November 11, 2013 1:28:44 PM UTC+5:30, Mukesh Srivastav wrote:
>
> Here are the things to check.
>
> APK:
>
> 1. Have a message id for new messages and check if the same message is 
> coming through from the server.
> 2. Always make sure you Unregister the device (GCM.unregister)
> 3. You need to handle the error message 
>
>
>
>
>
>
>
> On Mon, Nov 11, 2013 at 10:56 AM, janvi <[email protected]<javascript:>
> > wrote:
>
>> hello all
>>
>> I need urgent help here
>>
>> I got push notification successfully from the server.It is an error code 
>> which is sent by external server to the GCM.
>>
>> What if the error is fixed and the same message is communicated to the 
>> GCM then in such case notification displayed in the APP must disappear 
>>
>>
>> Is there any API to cross check with the GCM whether the notification is 
>> still active or not??
>>
>> Any other approach to handle this????
>>
>> Thanks in advance
>>
>>
>> On Thursday, November 7, 2013 12:00:24 PM UTC+5:30, janvi wrote:
>>>
>>> I have implemented and working fine...
>>>
>>> One more query here is Notifications from the server keep on coming 
>>> three times for every 10 seconds
>>>
>>> Can any body tell me what is going wrong here???
>>> I have used wakeFull BroadCast receiver
>>>
>>> Plz its urgent
>>>
>>>
>>>
>>> On Thursday, October 24, 2013 6:40:25 PM UTC+5:30, Piren wrote:
>>>>
>>>> you need to use the PendingIntent.FLAG_UPDATE_CURRENT flag when you're 
>>>> creating the pending intent.
>>>> Also notice that if your activity is in a singleInstance or singleTop 
>>>> then you need to use the event onNewIntent to get the new one.
>>>>
>>>> On Thursday, October 24, 2013 3:36:33 PM UTC+3, janvi wrote:
>>>>>
>>>>> Hi piren 
>>>>>
>>>>> than you :)
>>>>>
>>>>> Using the following code Iam able to go to next activity and 
>>>>> alertdialogue.
>>>>>
>>>>>
>>>>>
>>>>>        Intent notificationIntent = new Intent(this, 
>>>>> NotificationReceiverActivity.class);
>>>>>
>>>>>      //data received from the push notification is placed in bundle 
>>>>> and extracted later
>>>>>        notificationIntent.putExtra("check", "hello test");
>>>>>                           
>>>>>          notificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | 
>>>>> Intent.FLAG_ACTIVITY_SINGLE_TOP);
>>>>>         PendingIntent pintent 
>>>>> =PendingIntent.getActivity(getApplicationContext(), 
>>>>> 0, notificationIntent, 0);
>>>>>         notification.setLatestEventInfo(getApplicationContext(), 
>>>>> title, "hello test", pintent);
>>>>>         notification.flags |= Notification.FLAG_AUTO_CANCEL;
>>>>>         notificationManager.notify(0, notification);
>>>>>
>>>>>    I have put the data retrived from push notification in the 
>>>>> intent(putextra) and trying to extract it in the next activity and here 
>>>>> iam 
>>>>> getting the bundle data as null
>>>>>
>>>>>    Do Iam I missing something????
>>>>>
>>>>> Plz help Iam stuck here
>>>>>
>>>>>
>>>>> On Thursday, October 24, 2013 5:16:42 PM UTC+5:30, Piren wrote:
>>>>>>
>>>>>> push notification can do whatever you want, i assume you've added a 
>>>>>> notification when the push got in. So add an intent to the notification 
>>>>>> that launches an activity which will have a dialog (or look like a 
>>>>>> dialog).
>>>>>>
>>>>>> Regarding count, you can have a count on the notification icon, but 
>>>>>> not on the launch screen icon.
>>>>>>
>>>>>> On Thursday, October 24, 2013 2:08:16 PM UTC+3, janvi wrote:
>>>>>>>
>>>>>>> Hello All,
>>>>>>>
>>>>>>> Iam new to pushNotification I have few doubts here.
>>>>>>>
>>>>>>> I have implemented push Notification feature.Now if I want to open 
>>>>>>> an alert dialogue when the user clicks on push notification 
>>>>>>>
>>>>>>> I don't know how to open the alert dialogue here???any ideas????
>>>>>>>
>>>>>>> One more question is as follows
>>>>>>>
>>>>>>> How to show the pushNotification count on the AppIcon as IOS 
>>>>>>> does(i,e badge count)
>>>>>>>
>>>>>>> Can we do this in android???
>>>>>>>
>>>>>>  -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to 
>> [email protected]<javascript:>
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Android Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> -- 
> Warm Regards,
> *Mukesh Kumar*,
> Android Consultant/Freelancer,
> India,Hyderabad.
>  

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to