Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 3    Views: 85

ThomasB
Lost but trying
Profile
Posts: 162
Reg: Jun 23, 2011
Palo Alto
3,270
01/03/14 01:46 PM (11 years ago)

Using push notifications to drive app to specific page

Hi all, I had an interesting question the other day. I'm thinking about how to modify the Buzztouch source code to make this possible. Sorry in advance, this is kind of an obscure question. A client asked about sending a push notification to an app, and then when the user taps on the push notification, it takes them into the app AND it takes them down to the specific screen in the app. The push notification contains a code of some sort that tells the app to open directly to a screen. For example the user has an app created in Buzztouch that has a list of all the stores in a shopping mall. You send that user a push notification, which pops up, telling them of a sale at a specific store. If they swipe or tap the push notification, it takes them into the shopping mall app but bypasses the main menu, instead taking them directly to the page for that specific store. In the old BT iOS source code, I can envision how to do this. Add an algorithm that chops up the JSON string that drives the menus, so you go directly to the lower-level sub-menus instead of the home menu when you first start the app. I haven't looked at the new iOS core design so not sure if the same thing would work now. This is a concept that I'm seeing a lot more in mobile development these days...next generation mobile interfaces that are intelligently driven. BT's JSON architecture is so perfect for this kind of thing... Tom
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
01/03/14 03:29 PM (11 years ago)
Yup this can be done quite easily. If you use oparse you can add your own custom json to a message does the trick perfectly, with a few lines to the app delegate. I have asked david to add this to buzz touch self hosted when he gets the chance. With buzz touches push notifications I tweaked the sound name as the screen to push and made the amendments to react to that. I just set the sound as a default one so sound would still be played. It sounds like you know what your doing anyway
 
ThomasB
Lost but trying
Profile
Posts: 162
Reg: Jun 23, 2011
Palo Alto
3,270
like
01/03/14 04:08 PM (11 years ago)
Kittsy, Ha ha, I wouldn't say I know what I'm doing. More like...can take a few wild guesses and sometimes blunder into a working solution. Your response sounds really good. Just have to figure out how to use the app delegate in this case. Thanks!
 
DougJoseph
Aspiring developer
Profile
Posts: 161
Reg: Jan 30, 2016
Stonewood
2,210
like
02/18/16 09:56 AM (9 years ago)
I am much in need of something such as either one of the solutions you mentioned. Kittsy, would you mind to show me the code you changed/added (presumably to AppDelegate) to get that kind of function to happen?
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.