hrugani
hrugani

Reputation: 477

How can I call Waze App from codename in IOS devices

I wrote a CodeNameOne Mobile App that launches "Waze App" and starts a visual navigation that helps our users (health professionals) reach at houses of their respective patients.

This App works fine in Android devices. I simply call "Display.getInstance().execute(url)" method and all done. (Great!!!).

But , in iOS devices, this feature doesn't work. I expected the same code should work on all platforms.

For iOS devices do I need to do some specific code or configuration?

Any help will be appreciated.

Thanks

Upvotes: 0

Views: 195

Answers (1)

Troy Frericks
Troy Frericks

Reputation: 103

I suggest trying this URL:

waze://?q=123%20main%20st%20San%20Jose%20California

Found it on the Waze developer website.

Display.execute should work if you want to explicitly invoke Waze but you should probably use canExecute to make sure it's available (notice that canExecute returns Boolean and NOT boolean as it has 3 modes).

Assuming you just want to navigate somewhere you can just call openNativeNavigationApp.

Upvotes: 1

Related Questions