Showing posts from April, 2016

King David's response to Shimei Cursing

Bible tells us God called David A Man After My Own Heart If we look at Samuel II Chapter 16 Verse 5 to 13 , we see account of Shimei cursing David. David's response is exemplary in terms of his relationship with God. David was fleeing Absalom, who had successfully dethroned David. David had to flee to save his life. Absalom was one of David's son and had kept a grudge against David and his half brother Amnon. Amnon had violated Tamar (Absalom's sister), but King did nothing because he loved Amnon. David became king of Israel, after God had rejected king Saul and gave the throne to David. Shimei belonged to Saul's family, and held David responsible for Saul's dethrone and murder. However, David never killed Saul. David was with his official and special guards (mighty men). Naturally, Abishai asked David's permission to cut Shimei's head and silence him. The David's response to this is accounted as... .. .. 10  But the king said, “What does thi

iOS Push Notifications, Amazon SNS

Today, I set out to find answers for following 2 questions Can APNS device token change? Does Amazon SNS handle token changes? For 1st, I figured that device tokens can change. Apple developer docs mention following Note:  A device token is not a unique ID that you can use to identify a device. Device tokens can change after updating the operating system on a device. As a result, apps should send their device token Looking at other sources, it seems OS update is not the only event that can change the device token. This includes Device Reset, Wrong Backup Restore (of a different device) and 2 years lifetime elapsed. Refer Now, I wanted to know if this can be handled by Amazon SNS, instead of me creating a device token change notification from my app.  Turns out, Amazon SNS does handle it by disabling the end point, for which GCM / APNS has notified of expiry or replacement. SNS also notifies this through an event. GCM does a better j