Quantcast
Channel: SCN : All Content - SAP for Mobile
Viewing all articles
Browse latest Browse all 6147

Phonegap/cordova javascript sup api

$
0
0

Hi

I am trying to build a Phone-gap application in android platform eclipse environment.

I successfully created MBO, and then 'Generate Hybrid App API'

this created a few javascript files that i copy to Eclipse phone-gap application assets\www\js.

I have created  js file (myapp.js), on a button click i am calling a function that trying to initialize  connection to sup server,

 

var connectionSettings = new hwc.ConnectionSettings( hwc.REGISTRATION_METHOD_MANUAL,

                                                "xxx.xxx.xxx.xxx",

                                                5001,

                                                0,

                                                 "????",

                                                 222,

                                                 "HTTP",

                                                 "",

                                                 "/" );

 

var saveSettingsStatus= hwc.saveSettings( connectionSettings );

but i am getting an error: "_HWC is not defined".

i don't understated what is wrong,

cant i build a phone-gap application without using the HWC?

do i missing something?


Viewing all articles
Browse latest Browse all 6147

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>