You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace android with ios, if you're on Mac book or add both. The generic command is ```ionic platform add <platform-name>```
423
+
424
+
Now, let's try to run the app in browser. Execute the command
425
+
426
+
```
427
+
428
+
C:\projects\Ionic_AngularFire2_Project> ionic run android
429
+
430
+
```
431
+
432
+
This should run the app on your mobile phone. Now click on the Facebook button and you'll notice the button doesn't work anymore.
433
+
This is because the code written so far is good forrunning our applicationin browsers, but when running the application on mobile phones, we need to have access to ***Native Mobile API's***, which are provided by _Corodova Plugins_.
434
+
435
+
**We can access these corodva plugins, using Ionic Native, which are nothing but wrappers for cordova plugins.**
436
+
437
+
List of all Ionic Native API's for corodova plugins can be found [here](http://ionicframework.com/docs/v2/native/).
438
+
439
+
Let's look at configuring and installing facebook plugin [here](http://ionicframework.com/docs/v2/native/facebook/).
440
+
_Ensure you follow the steps correctly to configure your app._
441
+
442
+
Once you create your app and make a note of your App ID, go to command prompt in your project directory and execute the following command
Everything should work. Now trying running the app on your android phone
531
+
532
+
```
533
+
534
+
C:\projects\Ionic_AngularFire2_Project> ionic run android
535
+
536
+
```
537
+
538
+
Once the App launches click on the Facebook login button and it should open up the native facebook app for authentication and once your enter credentials and gets succesfully authenticated, it should redirect you back to the home page.
0 commit comments