Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Google+ Safari cannot open page because address is invalid

I have two apps one is free and another is paid version. I have implemented google+ share on paid and its working fine. But when I copied code to my free version it doesn't work. I have one Google apis project and added two clients for both iOS apps.

I get "Safari cannot open page because address in invalid" erro after sharing or cancel and it does not open my app.

Please help

I followed all steps defined at https://developers.google.com/+/mobile/ios/share#detecting_if_a_post_was_successfully_shared

like image 704
a4arpan Avatar asked Jun 13 '13 06:06

a4arpan


People also ask

What to do if Safari says the address is invalid?

You can clear your Safari cache (Settings > Safari > Clear History and Website Data) to remove the error. Alternatively, you can try again on a fresh device.

Why does it say Safari Cannot open because address is invalid?

Safari might think the address is invalid because the browser is experiencing problems in the background. This happens occasionally with any app. To fix it, quit Safari then open it and try to load the same page again.

Why does it say address invalid?

An address is termed invalid by USPS if it does not match a corresponding address in USPS's official address database. There are several reasons behind this mismatch, and most often, this reason is either incorrect data or that the given address is marked “vacant” by USPS.


2 Answers

Make sure that you add a URL Type for your app and that it matches the bundle ID of your app. I made a typo in specifying the URL and it took me a while to figure out why it wasn't working. https://developers.google.com/+/mobile/ios/getting-started#step_3_add_a_url_type

like image 90
Mel Avatar answered Oct 28 '22 14:10

Mel


For this we have to add URL schemes and identifier value in ProjectName - settings tab - info tab - URL Types tab.

Like in the below screenshot

enter image description here

like image 36
Iya Avatar answered Oct 28 '22 14:10

Iya