@Hanzo wrote:
I’m user of Ionic 2+ but I’m a new user on ionic v1.
First sorry but this is a basic doubt
I’m trying to implement wikitudes cordova plugin into a ionic v1 project.
Into the index.js configuration file of wikitudes I have:
onDeviceReady: function () {
app.wikitudePlugin = cordova.require(“com.wikitude.phonegap.WikitudePlugin.WikitudePlugin”);
// set a callback for android that is called once the back button was clicked.
if (cordova.platformId == “android”) {
app.wikitudePlugin.setBackButtonCallback(app.onBackButton);
}
app.wikitudePlugin.setJSONObjectReceivedCallback(app.onJSONObjectReceived);
app.wikitudePlugin.setOnUrlInvokeCallback(app.onURLInvoked);
}onURLInvoked: function (url) {
console.log(url)
app.wikitudePlugin.close()
$state.go(‘tab.area_clientes’, {es_boton: ‘0’});
}When The apps executes the $state.go it says that $state is not defined, what I’m doing wrong?
Posts: 1
Participants: 1