android - I see "Class not found" alert on Facebook.login using Ionic 2 -


i using ionic 2. installed cordova-plugin-facebook4 ionic plugin add cordova-plugin-facebook4 --variable app_id="123456789" --variable app_name="myapplication".

here piece of code

import { injectable } '@angular/core'; import { facebook } 'ionic-native';  @injectable() export class coreservice {     public fblogin():void{         facebook.login(['email']).then( (response) => {             alert('logged in');         }).catch( (error) => {             alert(error);         });     } 

and when calling fblogin function see alert "class not found" message. enter image description here

i see alert on simulator(android 6.x) on real device(android 4.4). there no error on console.

i did ionic platform remove android ionic platform add android , solve problem.


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -