tistoreproductview is a Titanium module that allows to display a modal window on iOS to retrieve the information of an application form with an appId
NOTE: This module runs on iOS only from SDK 8
Register your module with your application by editing tiapp.xml
and adding your module.
Example:
<modules>
<module platform="iphone">fr.squirrel.tistoreproductview</module>
</modules>
To use your module in code, you will need to require it.
var tistoreproductsquirrel = require('fr.squirrel.tistoreproductview');
To open a product sheet of the app store it will be necessary to use the method : showApp
Exemple with facebook appid
tistoreproductsquirrel.showApp({
appId:284882215,
success:function(e){
Ti.API.info("loaded successfully.");
},
error:function(e){
Ti.API.info("loaded failed.");
},
closed:function(e){
Ti.API.info("product view closed.");
}
});
Open Source This module was written in Objective C.