Tealium in apps with technology Ionic 3, Angular 4 y Apache Cordova 7

Silver Contributor
Silver Contributor

Hi everybody,

 

we are going to develop with Tealium a new app which technology is Ionic 3, Angular 4 y Apache Cordova 7.

 

I have a doubt in order to explain to the developers how we must implement Tealium in the app about including the library, track a screen or track an event.

 

I understand that I need to use this plugin https://github.com/Tealium/cordova-plugin, but we need something more?

 

 

Thanks in advance.

 

Regards.

7 REPLIES 7

Tealium in apps with technology Ionic 3, Angular 4 y Apache Cordova 7

Moderator
Moderator
Hi @dm_e,

The Cordova plugin works fine with Ionic and can be used in its current state.

However, with Ionic, there is an additional abstraction layer to a normal Cordova app. Generally, the app code is all written in TypeScript, which uses JavaScript syntax, but with the addition of strict type checking. With the next release of the Cordova plugin, I am also releasing a typescript wrapper for Ionic Native, which will make it much easier to use the Tealium plugin with Ionic apps.This new plugin will be released very soon, but I don't have a definite date yet.

Please let me know if you have any further questions.

Craig.
Check out our new Swift integration library for iOS, macOS, tvOS and watchOS: https://github.com/Tealium/tealium-swift with updated
documentation https://community.tealiumiq.com/t5/Swift/tkb-p/swift.

Tealium in apps with technology Ionic 3, Angular 4 y Apache Cordova 7

Silver Contributor
Silver Contributor

Thank you @craig_rouse!

 

I will send to the developers both cases: javascript implementation and the cordova plugin.

 

Regards.

Tealium in apps with technology Ionic 3, Angular 4 y Apache Cordova 7

Moderator
Moderator
@dm_e please note that the standard "utag.js" JavaScript implementation will not work in a Cordova app. The plugin is the only option. The TypeScript wrapper I was referring to is a wrapper around the Cordova plugin.
Check out our new Swift integration library for iOS, macOS, tvOS and watchOS: https://github.com/Tealium/tealium-swift with updated
documentation https://community.tealiumiq.com/t5/Swift/tkb-p/swift.

Tealium in apps with technology Ionic 3, Angular 4 y Apache Cordova 7

Silver Contributor
Silver Contributor

@craig_rouse I have another question, if we have an application with Cordova without iOS or Tealium,

 

which plugin is neccesary: Tealium-cordova-plugin or Tealium-cordova-deviceonly?

 

it works with deviceonly although it hasn't got native code?

 

Regards.

Tealium in apps with technology Ionic 3, Angular 4 y Apache Cordova 7

Moderator
Moderator
@dm_e If you want to run the app on the Apple iOS simulator, the "tealium-cordova-plugin" package is required. However, before submitting to Apple, you would need to switch to "tealium-cordova-deviceonly", which has simulator support removed. If you do not switch to this build, Apple will automatically reject your app. If you do not need simulator support, then you can use the deviceonly build from the start.
Check out our new Swift integration library for iOS, macOS, tvOS and watchOS: https://github.com/Tealium/tealium-swift with updated
documentation https://community.tealiumiq.com/t5/Swift/tkb-p/swift.

Tealium in apps with technology Ionic 3, Angular 4 y Apache Cordova 7

Silver Contributor
Silver Contributor

@craig_rouse my doubt is if my application only have ionic, angular and cordova (without native code like iOS or Android).

 

For an app with only ionic, angular and cordova, which plugin we can use? it works with the 'device-only' plugin or we must use "tealium-cordova-plugin"? (we haven't got an ios app)

Tealium in apps with technology Ionic 3, Angular 4 y Apache Cordova 7

Moderator
Moderator

@dm_e so you are not releasing your Ionic/Cordova app for iOS at all? If you are only releasing it for Android, then you can use either version of the plugin. The only difference is that if you are also releasing the app to the Apple store for iOS, the deviceonly build is required because it has the simulator support removed.

 

EDIT: @dm_e I just re-read your question, and I think you might have a slight misunderstanding about the way Cordova/Ionic works. Even if you write your app code 100% in JavaScript and HTML, the "container" for the app is still running native code. The Tealium plugin provides a JavaScript interface/wrapper around our native Android and iOS libraries, and if you submit the app to Apple without using the "deviceonly" plugin, they will reject your app.

 

If your developers are planning to use the iOS simulator to test the app, they will need to use the "tealium-cordova-plugin" version during the dev cycle, but they will need to switch to the "deviceonly" build before submitting to Apple. If they will not be using the simulator for testing, they can use the "deviceonly" build from the start. 

Check out our new Swift integration library for iOS, macOS, tvOS and watchOS: https://github.com/Tealium/tealium-swift with updated
documentation https://community.tealiumiq.com/t5/Swift/tkb-p/swift.
Public