Ionic firebase native setUserProperty issue


Dear all,

I tried to build a simple application that has push notification feature. I would like to filter my target audience by using user property in firebase. I hardcoded setUserProperty in app.component.ts, it works without any issue. It doesn’t work when I try to allow user to update by tapping or click. Can anyone advise on this? anyone face the same issue?