Pedro Miguel

unread,
Apr 24, 2019, 9:27:17 AM4/24/19
to MIT App Inventor Forum
Hello.

I'm developing an news app for a newswebsite. It was requested that the app had to notify the user whenever an news would be published.
I don't know how to do that...

My app is basicaly using webviwer component.
print_edp.PNG
print_homepage.PNG
print_homepage_B.PNG
print_inicio.PNG
print_ultima_hora.PNG
Message has been deleted

SteveJG

unread,
Apr 24, 2019, 10:09:41 AM4/24/19
to MIT App Inventor Forum
Your original post is here 
https://groups.google.com/forum/#!profile/mitappinventortest/APn2wQeJ2Fm22pEXFd8hy3YyyPlWGYC8thcCTWc5_agAGnta78XZ9uewUHJNYGNhTtjA5En2Zic9/mitappinventortest/s20DmYHSNsU/NX6pVHMwAwAJ  Pedro.

You probably cannot provide a notification to let a user know that a web page has been modified, especially Facebook.   To do that you would have to continually monitor the content of a web page , possibly using a Clock and a Web component)  and send the 'notification' whenever there is a change, however, what you probably will get is a 'notification' sent every time an ad on that page is checked. You do know that App Inventor native Blocks cannot send notifications except locally on a device when your app is running.  If the app is not running, (remember App Inventor 2 apps cannot run in the background) then what you want to do is not possible.

You might be able to monitor news with an  RSS feed on an appropriate web page (a web page that supports RSS feeds).  You are attempting to hijack data from Facebook does not have an rss feed. https://www.google.com/search?q=facesbook+rss&oq=facesbook+rss&aqs=chrome..69i57.4479j0j7&sourceid=chrome&ie=UTF-8  ordinarily.    See perhaps this to find out if your facebook page can have an rss http://techattitude.com/tips-tricks-and-hacks/how-to-get-the-rss-feed-for-any-facebook-page/    Something might be possible.   You would have to experiment.   Will it work?   I have no idea.


. A Forum discussion about RSS feeds might help  https://groups.google.com/forum/#!topic/mitappinventortest/VZKcSdryd-k

and Tony Barnes Feed Me example is reproduced here  https://groups.google.com/forum/#!searchin/mitappinventortest/feed$20me%7Csort:date/mitappinventortest/kdleVpIJqwc/UcfuGc3YOZAJ   if you get your news from sources other than facebook.

Regards,
Steve



Reply all
Reply to author
Forward
0 new messages