Discussion Forums  >  Config Data, JSON, App Refresh

Replies: 6    Views: 328

chris3839
I hate code!
Profile
Posts: 26
Reg: Apr 16, 2014
Sannicandro di ...
1,810
08/09/14 05:48 AM (9 years ago)

IOS app doesn't register in LIVE mode

Hi, I have an issue. I uploaded my app on app store but when I or other users download the app. it register in Design mode and not in Live mode, so I can't send push notification. When I tried it builded with an hoc distribution on two Iphone, it registered both in live and design mode, and push notifications worked well for smartphone registered in live mode. I have already set "Design" to "Live" in BT_config.txt in xcode before submitting the app to the store. Please help me! Thanks
 
Ed Goodall
Fusion Technology
Profile
Posts: 422
Reg: Oct 01, 2011
Wiltshire, UK
12,320
like
08/09/14 11:58 AM (9 years ago)
Did you save and clean the project after changing the txt?
 
chris3839
I hate code!
Profile
Posts: 26
Reg: Apr 16, 2014
Sannicandro di ...
1,810
like
08/13/14 02:23 AM (9 years ago)
I saved it but didn't clean.. Now I try to clean and save again, archive and send to App store.. I hope it will work
 
chris3839
I hate code!
Profile
Posts: 26
Reg: Apr 16, 2014
Sannicandro di ...
1,810
like
08/18/14 01:44 AM (9 years ago)
@Ed Goodall: It still doesn't work
 
DougJoseph
Aspiring developer
Profile
Posts: 161
Reg: Jan 30, 2016
Stonewood
2,210
like
03/04/16 12:05 PM (8 years ago)
User Moto110 did a hack to get around the same problem, which can be found here: https://www.buzztouch.com/forum/thread.php?tid=6B929DD9BEA427FE2EB276E&fid=06DB0BCB08E2222&sortColumn=FT.id&sortUpDown=&currentPage=1 I am now facing the same issue, and apparently needing to do the same hack.
 
DougJoseph
Aspiring developer
Profile
Posts: 161
Reg: Jan 30, 2016
Stonewood
2,210
like
03/04/16 12:11 PM (8 years ago)
By the way, I verified that the BT_config.txt file that got compiled into my app was set to live, by unzipping the app's .ipa file and looking inside the contents of the Payload > .app > BT_config.txt file. There it shows: "currentMode":"Live" Yet my app, once live in the app store, registered for Push in Design mode instead of Live mode.
 
DougJoseph
Aspiring developer
Profile
Posts: 161
Reg: Jan 30, 2016
Stonewood
2,210
like
03/08/16 02:21 AM (8 years ago)
I added some debugging code just to display the value of the "currentMode" variable. In spite of the fact that I am assigning it to "Live" in BT_config, by the time it gets called upon at run time, somehow its value has been switched to "Design." (Note in a post above the steps I have taken to insure that the correct BT_config code is getting compiled into the app.) Below are the three lines (with line numbers) that I added to _appDelegate.m and underneath that is the resulting debug display that shows -- whenever the app is side-loaded to the iPhone and run: ============== Debug code lines: ============== [BT_debugger showIt:self theMessage:[NSString stringWithFormat:@"LINE 321: reporting design/live mode as (currentMode=): %@", currentMode]]; [BT_debugger showIt:self theMessage:[NSString stringWithFormat:@"LINE 856: reporting design/live mode as (currentMode=): %@", currentMode]]; [BT_debugger showIt:self theMessage:[NSString stringWithFormat:@"LINE 898: reporting design/live mode as (currentMode=): %@", currentMode]]; ============================ Resulting Debug message displayed ============================ 2016-03-08 03:57:15.183 cacmobile[688:244445] cacmobile_appDelegate: LINE 856: reporting design/live mode as (currentMode=): Design I'm hoping someone that knows more about the process that the variable undergoes (code-wise) can steer me toward where in the app some code might be that either changes the value or otherwise somehow hardcodes it to "Design" mode.
 

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.