I’m building a mobile app for iOS and I’m trying to use the accounts-password package. I’m running Meteor.loginwithpassword but it will not work. I’ve also tried to create a user using Accounts.createUser() and I still cannot get it to work.
It does work in the simulator and the browser. Just not on iOS. I also created a barebones project with the accounts-password package and the accounts-ui package and add the {{> loginButtons}} template.
Again, it worked on the simulator and the browser but doesn’t show up on iOS. Can someone create the barebones app with accounts-password, accounts-ui and {{> loginButton}} and test it on an iOS device to see if this happening on all iOS devices?
I learned that your meteor app must be connected to a server in order for accounts to works. So when you do ‘meteor run ios device’ at the end you must append the server. So ‘meteor run ios-device --mobile-server http://www.mysite.com’ <- The url could also be the IP address of your computer with the :3000 port behind it (or whatever port your meteor app is running on).
I’ve got the same issue on Android (can’t try with IOS). Also working on desktop for me.
I manage the deployment with pm2-meteor so I don’t need to run the last command you posted. Any ideas?