add property to manifest.json

hi there


i want to use in app purchase plugin at 

https://github.com/AlexDisler/cordova-inapppurchases-app.git

it needs to some property added to monifest.json in www folder , i do not know how can i do it with out systems? how can i change or modify manifest json file? anyone can help?


regards,

omid ghanbari

Daniël Kuhlmann wrote:

Hi Omid,

Maybe you find help on the following pages:


https://success.outsystems.com/Documentation/10/Delivering_Mobile_Apps/Customize_Your_Mobile_App/Extensibility_Configurations_JSON_Schema

https://success.outsystems.com/Documentation/10/Extensibility_and_Integration/Mobile_Plugins/Using_Cordova_Plugins

Regards,

Daniel

Hi daniel.

Thanks for your reply i have tested that links before but i could not find any syntax related to manifest all possible options in extensibility config are plugin.preference.icons.pages and there is no tags related to modify manifest.json or are undocumented

Regards.

Omid ghanbari

Hello Omid,


Let split things up: if you want to implement that plugin, it's a good practice to fork that repository to a "controlled" place. This means that any change in the plugin's original repository will not affect your implementation.


Once you fork the plugin, it's fairly easy to change the manifest.json file on the www directory. Just clone the repository onto your local computer, do the change and then commit/push the new version.


Let me know if this helps.


Happy (low)coding!

Hello, Any luck of this?

I folked the git and made a manifet.json file under www folder.

But it seems not working well.

I attached what I did.

Hello Jongmin,

What's the issue that you're facing? Do you get any error message?

Cheers!

I cannot get any product list.There is no error message, it just returned 0

Jongmin Choi wrote:

I cannot get any product list.There is no error message, it just returned 0

I took a look at the code. Two things:

a) Line 1 has a missing semi-colon

b) As per the documentation, this returns a promise. As such, you need to use the $resolve() and $reject() functions, as documented here.

Cheers!

Thanks,  I appreciate, but still not working. 

I have no idea what the problem is, makes me crazy

Jongmin Choi wrote:

Hello, Any luck of this?

I folked the git and made a manifet.json file under www folder.

But it seems not working well.

I attached what I did.

Hi jongmin,

notice that Outsystems mobile app has it's own monifest.json and if you put your manifest.json on www folder it will conflict , all things you have to do is:

1- rename your manifest.json to something else like my-manifest.json and put it on plugin www folder

2-on your git open java file InAppBillingV3.java and find "www/manifest.json" and change it to your own like "www/my-manifest.json" then build your app and test it again , if you want to support IOS you have to repeat this step for IOS source file also.

Regards,

Omid Ghanbari