I had a VUE web page that bounce from Native aspect, in an effort to get the api prams I need, Native aspect passing the information as a url type like
the 1 and xdN3ywsqvJu2tHgY4mOf000000 is the information I need
So I exploit cut up to get these information
var url = window.location.href; var cutNumberSign = url.cut up('#'); var iotIdPlusPlatform = cutNumberSign.cut up('?'); var cutIotId = iotIdPlusPlatform.cut up('iotId='); var platfrom = cutIotId.cut up('platform='); var iotId = cutIotId.cut up('&'); this.iotId = iotId; this.platform = platfrom;
It really works completely wonderful from Android aspect
Nevertheless from ios I received, the information order was not the identical, it was like
so the cut up won’t work,
How am i able to get these information irrespective of the order is?