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
I'm not 100% sure if this is an issue with the Badge plugin or with Ionic, but...
I’m trying to set notification badges on my app, but for some reason it’s not working. Right now I just have a button for testing that, when clicked, runs this function:
I’ve got Badge imported like this, as per Ionic docs: import { Badge } from '@ionic-native/badge/ngx';
...and it was installed using ionic cordova plugin add cordova-plugin-badge
and have added Badge to my app.module.ts file.
Any ideas on what might be causing this? The same error appears for all Badge methods, with corresponding lines in the vendor.js file.
Currently testing on an iPhone 8+ with iOS 12.1.2.
The text was updated successfully, but these errors were encountered:
Não tenho 100% de certeza se isso é um problema com o plugin Badge ou com o Ionic, mas ...
Estou tentando definir os crachás de notificação no meu aplicativo, mas, por algum motivo, não está funcionando. Agora eu só tenho um botão para testar que, quando clicado, executa esta função:
Eu tenho o Badge importado assim, de acordo com documentos iônicos: import { Badge } from '@ionic-native/badge/ngx';
... e ele foi instalado usandoionic cordova plugin add cordova-plugin-badge
e adicionei o Badge ao meu arquivo app.module.ts.
Alguma idéia sobre o que pode estar causando isso? O mesmo erro aparece para todos os métodos Badge, com linhas correspondentes no arquivo vendor.js.
Atualmente testando em um iPhone 8+ com o iOS 12.1.2.
Sorry for my english translator.
In my case I had imported the version of ionic 4, I uninstalled the plugin and installed again with the correct version of ionic. worked for me.
I'm not 100% sure if this is an issue with the Badge plugin or with Ionic, but...
I’m trying to set notification badges on my app, but for some reason it’s not working. Right now I just have a button for testing that, when clicked, runs this function:
setBadge() { try { this.badge.set(10); } catch (e) { console.error(e); } }
When this function is called an error is caught reading:
ERROR: {"line":54169,"column":126,"sourceURL":"http://localhost:8080/build/vendor.js"}
That line in vendor.js is:
Badge.prototype.set = function (badgeNumber) { return Object(__WEBPACK_IMPORTED_MODULE_1__ionic_native_core__["cordova"])(this, "set", {}, arguments); };
I’ve got Badge imported like this, as per Ionic docs:
import { Badge } from '@ionic-native/badge/ngx';
...and it was installed using
ionic cordova plugin add cordova-plugin-badge
and have added Badge to my app.module.ts file.
Any ideas on what might be causing this? The same error appears for all Badge methods, with corresponding lines in the vendor.js file.
Currently testing on an iPhone 8+ with iOS 12.1.2.
The text was updated successfully, but these errors were encountered: