22
Views
1
Comments
Sentry.IO plugin SDK integration

Hi everyone!

Any mobile plugin expert?

I'm trying to integrate "sentry-cordova" https://docs.sentry.io/platforms/javascript/guides/cordova/

Which is an external tool and not outsystems sentry.

I'm trying to integrate the plugin in three manners:

1 - from github: here we have a build problem (file in dist folder "bundle.js and bundle.js.map" are not generated)

2 - from zip: here we have a build problem as well (file in dist folder  "bundle.js and bundle.js.map"  are not generated)

3 - from npm: here the build seems to work, but other problem after need me to modify some variable like "process.env.MYVAR" but variables given in the extension do not modify process.env so I don"t know how to modify them.

If you have any clue on how to proceed further it could be nice!

Thanks a lot!


2023-05-30 10-05-13
Lourenço Matalonga

Hi @Jesse DION ,

Integrating the Sentry.io Cordova SDK in an OutSystems mobile app can be challenging due to the build process and environment variables management. Here are some suggestions that might help:

  • For issues with files not being generated from GitHub or ZIP sources, check the build scripts to ensure they're being executed correctly. The bundle.js and bundle.js.map are likely built from source files, so you may need to run the build process manually.
  • For the npm build, regarding the process.env variables, you might have to use a plugin or custom script within OutSystems to set environment variables. OutSystems might not natively handle Node environment variables, so you'll need to find a way to inject or emulate them.

For both cases, ensure that the plugin is compatible with OutSystems and the specific versions of Cordova it uses.

Hope this helps you move forward.

Lourenco Matalonga

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.