These are chat archives for angular/angular-2-ionic-2

11th
May 2017
Damon Casale
@damoncasale
May 11 2017 02:10
Hey guys. Hoping someone can help. This isn't so much an Ionic issue as it is an issue with submitting to iTunes, but I get the feeling that the problem lies somewhere in my Ionic config files.
I'm getting this error upon attempting to validate the archive file with iTunes:
"Invalid code signature identifier. The identifier "com.lenzapp.app" in your code signature must match its Bundle identifier "com.lenz.app".
I'm working for a client who told me that their original app was "com.lenz.app" but they want me to upload my build to "com.lenzapp.app" instead.
I changed config.xml to reflect the new bundle ID, but still getting that error. What am I missing?
Damon Casale
@damoncasale
May 11 2017 02:59
Figured it out.
Martin Garcia
@martingarcia1981
May 11 2017 03:15
@damoncasale glad you figured it out!
Damon Casale
@damoncasale
May 11 2017 03:15
ty
kkrishnan90
@kkrishnan90
May 11 2017 04:17
Hey guys.. I have this ionic menu in my ionic 2 app. The items in the menu gets generated based on the role of the user. But the problem is when I login initially after installing the fresh app , the menu items are showing correctly pertaining to that role. But when I logout and login again as a different user with different role, the items doesn’t change in the ion menu. I tried placing those items with *ngIf , tried placing those items inside the component.ts as an Array of pages, tried instantiating the check during ionViewDidLoad() method and constructor too but nothing seems to work out.
Any help or suggestion from anyone is much appreciated on this as I’m struggling for about a week now with same issue.
Thank you all in advance.
Damon Casale
@damoncasale
May 11 2017 19:50
Afternoon folks...
Having a Facebook login issue (under iOS). I'm using @ionic-native/facebook 3.4.2 and getting a promise rejection when I attempt a login.
The rejection error says microTask: notScheduled.
Help?
Damon Casale
@damoncasale
May 11 2017 20:04
image.png
Help?
Damon Casale
@damoncasale
May 11 2017 20:40
Figured out that that's happening because the browserInit call is failing with a "plugin_not_installed" error. But the plugin IS installed??
ionic plugin add cordova-plugin-facebook4 --variable APP_ID="123456789" --variable APP_NAME="myApplication" --save
(And yes, I replaced those variables with my application ones.)
npm install --save @ionic-native/facebook
So...what gives?
UncertaintyP
@UncertaintyP
May 11 2017 20:41
Does this native plugin work in the browser? Can you confirm this behaviour on a device?
Damon Casale
@damoncasale
May 11 2017 20:42
I've been testing on a device.
And no, the native plugin won't work in the browser because it's an Ionic native plugin.
UncertaintyP
@UncertaintyP
May 11 2017 20:43
I don't know which version you are on, sorry
Damon Casale
@damoncasale
May 11 2017 20:44
Ionic 2, and one sec...
    "@ionic-native/core": "^3.6.0",
    "@ionic-native/facebook": "^3.7.0",
    "cordova-plugin-facebook4": "^1.7.4",
Need any other info?
And actually, Ionic 3.
    "ionic-angular": "^3.1.1",
UncertaintyP
@UncertaintyP
May 11 2017 20:45
Its just for your information: That means any of of the 130+ Ionic Native plugins can be tested and used in the browser.
Damon Casale
@damoncasale
May 11 2017 20:46
Well, when I do ionic serve, I get warnings that because Cordova isn't available, it can't perform those native actions.
It shows the warning screen with a close button.
UncertaintyP
@UncertaintyP
May 11 2017 20:46
However it is not important to your problem
Damon Casale
@damoncasale
May 11 2017 20:47
Just tried using ionic serve and got a different error: "cordova_not_available".
Anyway, any idea why it would say that the Facebook plugin isn't installed when it is?
UncertaintyP
@UncertaintyP
May 11 2017 20:48
I'm not familiar with Ionic 3 yet, you upgraded the app from 2 to 3?
And followed the necessary steps to do so
Damon Casale
@damoncasale
May 11 2017 20:49
I was fighting with an issue with form validation and updated because a function that the documentation said was available, wasn't available.
And yes, everything works except this.
UncertaintyP
@UncertaintyP
May 11 2017 20:51
No sorry, can't tell what causes this error
Damon Casale
@damoncasale
May 11 2017 21:28
Le sigh.
Sorry, got pulled into a phone call with the client I'm building this for.
UncertaintyP
@UncertaintyP
May 11 2017 21:34
And the position this error occurs doesn't provide usefull information?
Damon Casale
@damoncasale
May 11 2017 21:38
No.
I'm calling browserInit and it's returning that error.
I'm calling it in ngAfterViewInit, so I can at least see the error message.