angular-spotify icon indicating copy to clipboard operation
angular-spotify copied to clipboard

Redirect URI Mobile App

Open tmdevde opened this issue 9 years ago • 2 comments

Hi,

thank you a lot for your great work with this plugin! I'm currently working on an Hybrid App (ionic Framework) and in don't get the Login to work.

What has the callback uri to be for a mobile application? i tried to make an html on an external server and everything works fine besides the localSotorage value isn't set in the right window. It is set in the Popup Window of my callback URI but not in the App window.

I need some help here :-(

tmdevde avatar Jul 21 '15 11:07 tmdevde

Ok sounds like we may need to use postMessage for your case. The reason I used localstorage is because of an IE problem with postMessage not sending back to the parent window after the redirect in the popup.

May need to do something with both for this exact problem.

eddiemoore avatar Jul 22 '15 01:07 eddiemoore

thank you for your fast reply. i will try postMessage. Could you give me an example?

tmdevde avatar Jul 22 '15 09:07 tmdevde