amazon web services - Installing JavaScript AWS SDK for NativeScript -


i'm trying use aws-sns in nativescript. aws sdk available javascript.can know how install aws sdk nativescript.

i tried installing aws-sdk javascript on node.js. reference link "https://www.npmjs.com/package/aws-sdk". because of below code

require("aws-sdk")

in nativescript error saying failed find module: "crypto" coming.with bit of search in internet, found crypto module support not added in nativescript.

now i'm wondering there other ways.

thanks in advance.

as nativescript not (yet) "polyfill" crypto module hard thing.

searching code references crypto, you'll find there's not many uses , uses not advanced. means should able substitute node module crypto crypto-js works in nativescript environment.

you might need fork aws sdk codebase , substitute calls node crypto module calls corresponding methods in crypto-js. unfortunately not share same api.

if you're running webpack (or it) should able create "transformer module" transform node crypto calls corresponding crypto-js calls , make sure transformer module called instead of node crypto module via webpack alias'.


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -