Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 14    Views: 103

AussieRyan
Aspiring developer
Profile
Posts: 148
Reg: Mar 21, 2012
Margate, QLD Au...
1,480
06/06/16 09:47 PM (8 years ago)

[SOLVED] SMUGs MsgLoc showing the middle of the Atlantic

I am using the MsgLoc plugin and followed the instructions here: <a href="https://dl.dropboxusercontent.com/u/115208762/iOS8LocFix.pdf" target="_blank" rel="nofollow">https://dl.dropboxusercontent.com/u/115208762/iOS8LocFix.pdf</a> When I use the app, the Lat/Long coordinates at the bootom of the screen are correct for my location, but the map shows in the middle of the Atlantic when it should be showing near Brisbane, Australia. Suggestions? regards, Wayne
 
hendosan
Apple Fan
Profile
Posts: 14
Reg: Feb 28, 2013
Sydney, Austral...
5,140
like
06/07/16 12:28 AM (8 years ago)
Have you turned on start tracking location (turn on GPS) within the app's core properties? You'll find it in the Core tab in the Control Panel for your app. mark
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
06/07/16 01:03 AM (8 years ago)
Mark is right. If your map shows the ocean just south of Ghana, the coordinates are 0,0 and basically mean that the plugin is not receiving location updates. Core properties, as well as device GPS settings need to be attended to appropriately. If you still have issues, yell on the forum. Cheers! -- Smug
 
AussieRyan
Aspiring developer
Profile
Posts: 148
Reg: Mar 21, 2012
Margate, QLD Au...
1,480
like
06/07/16 04:58 AM (8 years ago)
Both are set and I find that when I open the app, if I refresh and then go to the MsgLoc page, all is OK. I will test further but I was going to initiate auto refresh of the app.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
06/07/16 06:19 AM (8 years ago)
If the app is still in the development stage, perhaps updating the BT_config.txt file in the app? Cheers! -- Smug
 
AussieRyan
Aspiring developer
Profile
Posts: 148
Reg: Mar 21, 2012
Margate, QLD Au...
1,480
like
06/07/16 05:26 PM (8 years ago)
Updated BT_config.txt Changed to Live mode still requires app refresh to move map to my location Map lat/long are correct even when showing middle of the Atlantic
 
AussieRyan
Aspiring developer
Profile
Posts: 148
Reg: Mar 21, 2012
Margate, QLD Au...
1,480
like
06/07/16 05:31 PM (8 years ago)
Core properties - Turn on GPS set to turn on when i remove the app and d/l again from xcode, I am asked to allow to use location, etc on iphone and ipad
 
AussieRyan
Aspiring developer
Profile
Posts: 148
Reg: Mar 21, 2012
Margate, QLD Au...
1,480
like
06/07/16 05:41 PM (8 years ago)
When I build, I get a lot of warnings only. I do get a warning for sw_smugmsgloc.m: /Users/xxxx/Desktop/ios/xxxxxx/BT_Plugins/sw_smugmsgloc/sw_smugmsgloc.m:219:46: Null passed to a callee that requires a non-null argument Line 219 is: NSString *tmpBody = self.smugUrlData; Don't know if it means anything, just throwing it out there
 
AussieRyan
Aspiring developer
Profile
Posts: 148
Reg: Mar 21, 2012
Margate, QLD Au...
1,480
like
06/07/16 05:42 PM (8 years ago)
Core properties - Turn on GPS set to turn on when i remove the app and d/l again from xcode, I am asked to allow to use location, etc on iphone and ipad
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
06/08/16 01:51 AM (8 years ago)
Line 219 is: NSString *tmpBody = self.smugUrlData; the smugUrlData is the dataURL that is provided in the SMS Message. It should be populated from your control panel entry. is your app 'updating location' ? You might try cleaning the project as well, just to be sure of things... You've used this plugin before. What is different about this app? Cheers! -- Smug
 
AussieRyan
Aspiring developer
Profile
Posts: 148
Reg: Mar 21, 2012
Margate, QLD Au...
1,480
like
06/08/16 04:02 PM (8 years ago)
As an experiment, I created a new app using only MsgLoc as home page. No other screens. Core - Start Tracking Location (turn on GPS) - Yes No changes to screen Control Panel Download - Use the Buzztouch Core for iOS v3.0 Opened in Xcode used PDF - https://dl.dropboxusercontent.com/u/115208762/iOS8LocFix.pdf Simulator - Yes to use location (Debug set location to London) - iPhone 6s Plus ios 9.3 - Showed in Atlantic - refresh - showed London iPhone5 - ios 9.32 - Yes to use location - Showed in Atlantic (with coordinates for Brisbane) - refresh - showed location (Brisbane) Closed app, stop running xcode and disconnect from Mac Closed app on iPhone and swipe up to shut app Open app and location show as Brisbane Remove app from phone reconnect to Mac and repeat Product > Clean Build for phone - Showed in Atlantic (with coordinates for Brisbane) - refresh - showed location (Brisbane) Closed app, etc as before with the same results. Same results using iPad 4 The screen shows the coordinates first time but does not show on map until refresh, then all is OK.
 
hendosan
Apple Fan
Profile
Posts: 14
Reg: Feb 28, 2013
Sydney, Austral...
5,140
like
06/09/16 04:02 PM (8 years ago)
I'm at a complete loss as to why you're having this issue. I, too, created a test app but couldn't replicate the problem; it worked as expected. I also have MsgLoc in one of my live apps and it works a dream. I can only echo Smug's comment to check that the device is updating its location, before MsgLoc runs on the device, while in debug mode.
 
AussieRyan
Aspiring developer
Profile
Posts: 148
Reg: Mar 21, 2012
Margate, QLD Au...
1,480
like
06/09/16 08:42 PM (8 years ago)
Just created a test app at Buzztouch, not on my self-hosted server, using the MsgLoc screen. It works as advertised. It looks I will be busy re-creating my app on the Buzztouch server as the client wants it up ASAP.
 
AussieRyan
Aspiring developer
Profile
Posts: 148
Reg: Mar 21, 2012
Margate, QLD Au...
1,480
like
06/10/16 01:28 AM (8 years ago)
Sometimes it takes a while for my dinosaur brain to catch up and put 2 and 2 together. The answer is in my post above. I had the MsgLoc screen as a tab menu. As soon as I placed the MsgLoc screen into a menu screen as an item, it works.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
06/10/16 04:57 AM (8 years ago)
Odd that it reacts that way in a Tabbed environment. I'll take a gander at it (eventually. my dance card is pretty full right now); I can't imagine why it would be affected. But glad you figured it out and are able to utilize it. :) Cheers! -- Smug
 

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.