cancel
Showing results for 
Search instead for 
Did you mean: 

Phonegap/cordova javascript sup api

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

No, you cannot build a phongap application that uses the HWC APIs without using the HWC client.  Any hwc.* JavaScript APIs are dependent on running within the HWC client.

Thanks,

Andrew.

Former Member
0 Kudos

Hi Andrew

thanks for the quick replay.

So maybe u can explain for  what this option for?

Answers (0)