tag:blogger.com,1999:blog-3665064696228706104.post3453502520112264611..comments2024-01-11T15:42:46.027+05:30Comments on KodeClutz: Push notifications for the Open WebNikhilhttp://www.blogger.com/profile/02751486022348919717noreply@blogger.comBlogger23125tag:blogger.com,1999:blog-3665064696228706104.post-82462205795485320122013-12-16T17:50:23.930+05:302013-12-16T17:50:23.930+05:30Is it something like a ParseDB or an Urban Airship...Is it something like a ParseDB or an Urban Airship for the Web?chinmayhttps://www.blogger.com/profile/05401076649846683255noreply@blogger.comtag:blogger.com,1999:blog-3665064696228706104.post-77278053008045357282013-07-26T00:24:55.813+05:302013-07-26T00:24:55.813+05:30Found your blog post and thought you might be able...Found your blog post and thought you might be able to help. I was trying to get Simple Push working for my Firefox OS app and successfully received an endpoint (on Keon running 1.1). The problem I'm experiencing is that the system message is only delivered if the app is running. If it isn't, the the app isn't started. Do you happen to know what the issue could be?Anonymoushttps://www.blogger.com/profile/14440836941563695304noreply@blogger.comtag:blogger.com,1999:blog-3665064696228706104.post-79717595171634073932013-07-09T01:14:01.891+05:302013-07-09T01:14:01.891+05:30Hi,
How do I change these settings? Do I need to ...Hi,<br /><br />How do I change these settings? Do I need to patch my simulator/device or can I do it only within my app bundle?Giladhttps://www.blogger.com/profile/03705337943788929721noreply@blogger.comtag:blogger.com,1999:blog-3665064696228706104.post-6722731045522391572013-06-13T12:19:10.946+05:302013-06-13T12:19:10.946+05:30I wanted to thank you for this great read!! I defi...I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post, Good luck!!!<a href="http://www.bwcmobile.com/" rel="nofollow">Charleston Mobile App</a><br />Anonymoushttps://www.blogger.com/profile/07882147985842296009noreply@blogger.comtag:blogger.com,1999:blog-3665064696228706104.post-8566296131098908272013-06-13T05:49:44.908+05:302013-06-13T05:49:44.908+05:30Sounds like what you're describing is a sort o...Sounds like what you're describing is a sort of location service in which the system/browser manages waking the app based on certain location-based criteria.<br />Is that what you're thinking? If so Push notifications won't suit the bill.<br />I'm unsure if that's something Mozilla has on its radar right now or not (or if this is a concept that's feasible without killing the battery).Caspy7https://www.blogger.com/profile/15952477072329336369noreply@blogger.comtag:blogger.com,1999:blog-3665064696228706104.post-75517957668119381452013-06-13T01:40:18.257+05:302013-06-13T01:40:18.257+05:30You could write an app which constantly monitored ...You could write an app which constantly monitored the location and sent it to a server. But then you wouldn't need push.Nikhilhttps://www.blogger.com/profile/02751486022348919717noreply@blogger.comtag:blogger.com,1999:blog-3665064696228706104.post-36077483537159514522013-06-12T12:55:13.769+05:302013-06-12T12:55:13.769+05:30can this be used to awaken an app when near a loca...can this be used to awaken an app when near a location ?Qkwicpayhttps://www.blogger.com/profile/02521716216405363374noreply@blogger.comtag:blogger.com,1999:blog-3665064696228706104.post-20826983777423284262013-05-30T20:14:26.678+05:302013-05-30T20:14:26.678+05:30Can I try the push notifications in Simulators ? W...Can I try the push notifications in Simulators ? Will it works ?Anonymoushttps://www.blogger.com/profile/03166457353939328597noreply@blogger.comtag:blogger.com,1999:blog-3665064696228706104.post-1284625023411425252013-05-27T23:17:22.216+05:302013-05-27T23:17:22.216+05:30The code is there, you just need to set the two pr...The code is there, you just need to set the two prefs services.push.enabled = true and services.push.serverURL = wss://nikhilism.com:9082Nikhilhttps://www.blogger.com/profile/02751486022348919717noreply@blogger.comtag:blogger.com,1999:blog-3665064696228706104.post-29118824001934106942013-05-27T16:54:10.078+05:302013-05-27T16:54:10.078+05:30do you know if this is coming to Firefox OS Simula...do you know if this is coming to Firefox OS Simulator in Firefox Desktop any time soon?Anonymoushttps://www.blogger.com/profile/12417030121053382049noreply@blogger.comtag:blogger.com,1999:blog-3665064696228706104.post-36031392089176446902013-05-08T19:49:15.013+05:302013-05-08T19:49:15.013+05:30@Calvin: I'm not sure what you mean by tabs, s...@Calvin: I'm not sure what you mean by tabs, since a web app can have only one instance of it running. When an app isn't currently running, the app is started. That is what the system messages API does. The URL (relative to the app) to be loaded is specified in the manifest. I'm not sure if there is some API for an app to check if it has focus or not. Please try asking on #b2g or the mailing list.Nikhilhttps://www.blogger.com/profile/02751486022348919717noreply@blogger.comtag:blogger.com,1999:blog-3665064696228706104.post-75146541161755070522013-05-03T03:58:30.885+05:302013-05-03T03:58:30.885+05:30I have a lot of questions about the background loa...I have a lot of questions about the background loading of these pages, in particular when an app isn't currently loaded. What URL is loaded? What if the user had closed the application, then opened it one or two more times in different tabs? Does an application know if it is loaded in the background, and thus able to respond to push notifications differently?Calvin Spealmanhttps://www.blogger.com/profile/07161631946662126734noreply@blogger.comtag:blogger.com,1999:blog-3665064696228706104.post-13285146309043122592013-04-29T15:38:01.735+05:302013-04-29T15:38:01.735+05:30I have an iPhone and when an app sends me notifica...I have an iPhone and when an app sends me notifications I don't want (perhaps it's a game or something else I'd like to keep around) I just pop into the notifications manager and cut all its permissions. Then I never hear from it again but can still use it fine.<br />I'm quite happy with the arrangement.<br /><br />(iOS has a surprisingly powerful control over the different types of notifications that apps are allowed)Caspy7https://www.blogger.com/profile/15952477072329336369noreply@blogger.comtag:blogger.com,1999:blog-3665064696228706104.post-72420205409693259062013-04-28T18:20:41.802+05:302013-04-28T18:20:41.802+05:30power management is something we're looking at...power management is something we're looking at. there is no wake lock held but this does mean that there is a compromise between the instantaneous of notifications vs power consumption. on stable networks there is less of a problem since the CPU goes to sleep until interrupted by the nic. but ensuring that the connection is up does require the cpu to wake up occasionally. there isn't a lot of open prior art and data on push, so we're finding things out as we go.Nikhilhttps://www.blogger.com/profile/02751486022348919717noreply@blogger.comtag:blogger.com,1999:blog-3665064696228706104.post-31371846232483082712013-04-28T18:15:49.360+05:302013-04-28T18:15:49.360+05:30Exactly my thoughts, which is why the risk of this...Exactly my thoughts, which is why the risk of this feature being abused more than ever comes to the fore. Developers act nice initially with their push messages, but a month down the line they will keep pestering you to no ends ^^<br /><br />Another thing I would probably think towards is the effect of wakelocks on devices having push notifications enabled. Your thoughts?Nitish Saxenahttps://www.blogger.com/profile/14528495751763641660noreply@blogger.comtag:blogger.com,1999:blog-3665064696228706104.post-33757476152742542852013-04-28T18:14:48.699+05:302013-04-28T18:14:48.699+05:30This comment has been removed by the author.Nitish Saxenahttps://www.blogger.com/profile/14528495751763641660noreply@blogger.comtag:blogger.com,1999:blog-3665064696228706104.post-48081464543708093322013-04-28T10:11:22.037+05:302013-04-28T10:11:22.037+05:30Point 1 is correct, no data.
For 2, again yes suc...Point 1 is correct, no data.<br /><br />For 2, again yes such a system will be in place eventually. I guess the toggle to disable push will likely be in the "App Permissions" page in Settings, but that is something the UX team will make a call on.Nikhilhttps://www.blogger.com/profile/02751486022348919717noreply@blogger.comtag:blogger.com,1999:blog-3665064696228706104.post-74896708421597447462013-04-28T10:08:52.480+05:302013-04-28T10:08:52.480+05:301) Push notifications have a very restricted set o...1) Push notifications have a very restricted set of features, which is to wake up an app when something of interest happens on a remote server, and run a specific JS function within that app. The app is free to do whatever it wishes when it receives said notification, bound of course by other rules FxOS puts on the app. So an IM app could easily pop up the chat dialogue or send messages.<br /><br />2) It is up to the app to annoy the user by popping up a notification when it receives a push. As point 4 states, Push is not a "user notification" system. That said, before this is enabled, the Gaia team will work on an interface to disable push notifications for an app. Of course, subjectively, I would immediately uninstall any app that spammed me :)Nikhilhttps://www.blogger.com/profile/02751486022348919717noreply@blogger.comtag:blogger.com,1999:blog-3665064696228706104.post-85358833294097772832013-04-28T05:05:51.671+05:302013-04-28T05:05:51.671+05:30When I said "Notification Center" I mean...When I said "Notification Center" I meant it in the sense of a management interface for app notification permissions. In iOS it's a place where the most recent notifications reside.Caspy7https://www.blogger.com/profile/06396398706271281708noreply@blogger.comtag:blogger.com,1999:blog-3665064696228706104.post-90507887912319695592013-04-28T04:46:32.714+05:302013-04-28T04:46:32.714+05:30Oops, I intended to reply to you, but didn't g...Oops, I intended to reply to you, but didn't get it right. My reply is below.Caspy7https://www.blogger.com/profile/06396398706271281708noreply@blogger.comtag:blogger.com,1999:blog-3665064696228706104.post-55348208092056837272013-04-28T04:44:17.653+05:302013-04-28T04:44:17.653+05:30I'm not a developer, but I'll give input f...I'm not a developer, but I'll give input from my understanding of things.<br />1) This Push Notifications API is a way to wake up the app/page - not even send data (like a text message) to it. Once awoken, the app will then contact its server for the latest relevant data. So in the case of SMS, the app will contact its server in its own way (perhaps https for security) and download what's new and can then, if it wants, notify the user via the Notification API (*different from Push Notification*).<br /><br />2) As I mentioned above, the Push Notifications API and Notifications API are separate. Push does not interact with the user at all. Like with other sensitive APIs, desktop Firefox keeps a list of permissions for location sharing, notifications, etc, in the Page info dialog. But for any app or page that wants to send you notifications, you should be prompted to allow it on install. I don't know if Firefox for Android or FxOS have the permissions dialog yet, but if not they will.<br />So an app/page has to ask permission first, but if they should abuse notifications, the user can disable that app's ability.<br />I think, with the new addition of Notifications, Firefox *should* (hopefully will) be adding a Notification Center to all its browsers (and OS). This would make for a simple way for users to manage notification permissions in a central place. I know iOS has this.<br /><br />If I got anything wrong Nikhil (or anyone), please feel free to correct me.Caspy7https://www.blogger.com/profile/06396398706271281708noreply@blogger.comtag:blogger.com,1999:blog-3665064696228706104.post-74245474362288395712013-04-27T22:34:29.912+05:302013-04-27T22:34:29.912+05:30Wonderful news. A few queries though with regards ...Wonderful news. A few queries though with regards to its implementation in B2G, if you could shed some more light - <br /><br />1. Will there be a way to achieve a two-way interaction, something like a "call to action" that the user can initiate inherent to push notifications? We have SMSs (just an example) create seamless two-way interactions, will there be scope for the same here?<br /><br />2. How do you think would abuse of this feature be addressed? Push notifications are more direct and upfront - most cases they simply pop-up someplace on your screen. Of course that can be circumvented via GUI modifications, but wouldn't it be a turn-off and cause users to move away from brands employing the technique?Nitish Saxenahttps://www.blogger.com/profile/14528495751763641660noreply@blogger.comtag:blogger.com,1999:blog-3665064696228706104.post-7898334240027461592013-04-27T01:46:22.875+05:302013-04-27T01:46:22.875+05:30So you have 3 things: the application, the push en...So you have 3 things: the application, the push endpoint, and the application server, right? what would be the application server in the example of the email app or a micro blogging app?Viranch Mehtahttps://www.blogger.com/profile/09243847479271428429noreply@blogger.com