android – How to add notification in webview?-ThrowExceptions

Exception or error:

I have created a webview app which working is perfectly fine with a website say xyz.com

The app is made for small scale purpose and for personal use. (Not uploaded in play store)

Generally when I change some content in the website – Index.html(say) the app also gets update as it loads the updated url.

I want to create a notification that whenever I change the content user gets a notification in their notification bar say (today event – abc ) and when they click that notification it opens the app to see what got updated.

How to create such notifications?

How to solve:

You need to first register your user and get the gcm registration id and save it on your server. Then you can implement notification system present in android like this http://developer.android.com/guide/topics/ui/notifiers/notifications.html
Whenever you change your content just send a notification to all the user base and your work is done. Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *