Why exactly are you wanting to push the whole Google Plus login to the UserPage page? Second option in navCtrl.push is an object of paramters to forward, and you’re essentially doing
{ someFunction() }
which isn’t valid syntax for an object… What are you trying to do?
Edit: Also, this seems to be Ionic 2+, please update the category
sorry…i just want to do when google authentication button is clicked it has to alert the message in their userpage…that’s all what i need…now i updated my code…but still there is an error.
What did you update your code to? If you’re still getting that error, my guess would be you didn’t follow what @mich356c said and you’re still attempting to create and present an alert in the navCtrl parameters.
First possibility is that you’re trying to use a cordova plugin in the browser, which normally won’t work as most cordova plugins require native functionality.
The second possibility I believe is that you’re trying to use a cordova plugin before cordova is ready. In this case you need to wrap your call with platform.ready, e.g.
i have tried this code but it shows window.plugins is undefined in homepage. i created index.d.ts in the window folder and did interface window{ plugins:any; }
but still i got this error…i @SigmundFroyd t will be helpfull if you give example as your method…What need to be change in my code