Hi all, I just want to know is it possible to integrate marketo push notifications into my ionic3 application.
I tried to add plugin like this :
$ ionic plugin add https://github.com/Marketo/PhoneGapPlugin.git --variable APPLICATION_SECRET_KEY=“mymarketoKey”
I got my marketo.js file in node_modules/MarketoPlugin/www/marketo.js
and I imported in app.component.ts like this :
import { marketo } from ‘MarketoPlugin/www/marketo.js’;
and in constructor i called the initialize functions which is there in marketo.js
constructor(public marketo: marketo){
this.marketo.initialize(
function() { console.log(“MarketoSDK Init done.”); },
function(error) { console.log(“an error occurred:” + error); },
‘myid’,
‘mykey’
);
}
I got an error like this
Please help me out