Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DGGeofencing sample not working on iPhone 3GS, What is possible to do? #30

Open
logger1 opened this issue May 26, 2013 · 3 comments
Open

Comments

@logger1
Copy link

logger1 commented May 26, 2013

Hi,

When I try to add a region for monitoring through the sample app on iOS5.1 on iPod Touch 3rd gen or iPhone 3gs, the region never gets added.

After browsing a little bit on the internet, I see that geofencing is not available for iPhone and iPod Touch devices prior to the iPhone 4 generation.

What can I use instead if I want to be able to monitor location and issue notification upon leaving a region?
Is there a way to emulate this feature?

Thanks,
Fredy

@radshag
Copy link
Owner

radshag commented May 27, 2013

It does look like that is from js. If you run in simulator 6 does it work. Try putting a break point in the plugin and see what the error is.

Sent from my iPhone

On 27 במאי 2013, at 01:00, logger1 [email protected] wrote:

Hi,

When I try to add a region for monitoring through the sample app on iOS5.1, works properly on iOS6, the ajax loader just goes on forever and it never finishes.

I'm using Cordova 2.7 and getting a log error of "init error" which means it's probably coming from index.js:
"DGGeofencing.initCallbackForRegionMonitoring(new Array(), processRegionMonitorCallback, function(error) {
console.log("init error");
});"

Can you help me understand why?

Thanks,
Fredy


Reply to this email directly or view it on GitHub.

@logger1
Copy link
Author

logger1 commented May 27, 2013

Thanks for the quick reply!

It works properly on iOS6.1 simulator, but just hangs with the ajax reloader on iOS5.1 simulator (See attached pic).

I couldn't find a way to step-by-step debug iOS5.1 but I've debugged using alerts and seen that it gets all the way to the cordova.exec of startMonitoringRegion (DGGeofencing.js) with the same info as it does in the iOS6.1 but doesn't move forward from there.

Do you have any suggestions to what I could try doing?

Thanks again!

img_0024

@radshag
Copy link
Owner

radshag commented May 27, 2013

Put a break point in the objective c part of the plugin. The functions in objective c have the same name as the JavaScript counterparts. 
Dov

Sent from Mailbox for iPhone

On Mon, May 27, 2013 at 6:09 PM, logger1 [email protected] wrote:

Thanks for the quick reply!
It works properly on iOS6.1 simulator, but just hangs with the ajax reloader on iOS5.1 simulator.
I couldn't find a way to step-by-step debug iOS5.1 but I've debugged using alerts and seen that it gets all the way to the cordova.exec of startMonitoringRegion (DGGeofencing.js) with the same info as it does in the iOS6.1 but doesn't move forward from there.
Do you have any suggestions to what I could try doing?

Thanks again!

Reply to this email directly or view it on GitHub:
#30 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants