Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Jun 2014
    Posts
    3

    Nokia Asha IN app purchasing

    Hi I have made two apps for Nokia Asha one is the demo version and I integrated the IAP sdk
    into it successfully the second file is the full version app that the user can purchase it by
    purchasing it through the first app .now that I want to upload both in Nokia ovi store and submit to QA it only have one place
    for uploading jar and jad content files ,so I just wonder where should I place my second full version
    .Do I need to make two profiles one for the full version and the second for the demo version
    with in app purchasing ?!!!
    Or should I redesign and merging the two apps into one (Hope not)
    Can I place the second file as a zip file in (additional documentation )place!!!?

    Please advice and help

    Thanks to all

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    686

    Re: Nokia Asha IN app purchasing

    You cant have 2 different binaries to be distributed to the same device in the same content item.
    What you need to do is the latter option you mentioned, which is redesign and merge the two app into one and lock all the features that are not part of the demo
    and once the user buys through the in-app purchase the full version then you unlock them.
    Its not that hard to do and I've done so in the past with one of my apps called Package Tracker http://store.ovi.com/content/352191 (hopefully its available in your area as it is not available globally).
    Heard of DVLUP? Join here

  3. #3
    Registered User
    Join Date
    Jun 2014
    Posts
    3

    Re: Nokia Asha IN app purchasing

    Hi Shai
    Your app is not available in eastern-Eu ,,,but anyways should I provide the user the password to open the full version
    then how the user who paid can get the password .?!!I don't want to go in that way since it requires preparing lots of passwords
    for each purchasing.
    or do you place a variable in a file then modify it when purchasing!!!this way also is too easy to be cracked and opened .
    could you say what secure method you have used !!!or
    Can I use new profile for demo version so the user can not receive the full version at the beginning and only can get it once he paid .

    thanks

  4. #4
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    686

    Re: Nokia Asha IN app purchasing

    I use the RMS to store variables on Lock/Unlock status of the app.
    The RMS is completely private and users don't have access to it (unless the entire phone is hacked which is far more harder)
    You should also allow users that have paid for the in-app and deleted the app and installed it again to have an option to re-activate the in-app without re-paying for it and you can do that with the Nokia in-app purchase API.
    Heard of DVLUP? Join here

  5. #5
    Registered User
    Join Date
    Jun 2014
    Posts
    3

    Re: Nokia Asha IN app purchasing

    Hi Shai.i Thanks so much for your help ,that was a good point using RMS I also addred 2 more ini file and stored different var inside it for more security
    really appreciate your help .
    I just wonder what should I add in manifest file to finish my work .I mean
    1) what permissions should I added to jad and manifest for (I.A.P).?!!!
    2)my game doesn't need screen key pad do I have to add (on screen key pad :no )as usual or should not mention it since adding IAP ?!! .
    3)my game is in landscape mood what correct statements do I need to make the IAP in landscape orientation .?!!
    4)do I have to sign the jar file or the nokia store should do it ,,,which way is better ?!!!
    Thanks for reading and Sorry for asking a lot
    wishing you all the Best.

  6. #6
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    686

    Re: Nokia Asha IN app purchasing

    Your welcome,

    Here are my answers:

    1) there is no permission for IAP, however I think that it always good to add javax.microedition.io.Connector.http,javax.microedition.io.Connector.https for Internet use and sometimes I also add javax.microedition.io.Connector.file.write,javax.microedition.io.Connector.file.read if I want to store my vars on both the RMS and the File system to see if they had been tamper with.
    2) Nokia-MIDlet-On-Screen-Keypad: no only works for Nokia Symbian touch devices which prevent them from showing the navigate dpad on the screen for j2me content I don't see how this relate to your app which uses j2me IAP which is only available on Asha devices.
    3) You cant control the IAP orientation AFAIK
    4) Nokia offers free java verified signing for all apps that are submitted to the Nokia store and passes QA (which test the java verified criteria)
    Heard of DVLUP? Join here

  7. #7
    Registered User
    Join Date
    Apr 2012
    Posts
    13

    Re: Nokia Asha IN app purchasing

    Hi, thank you for asking, we are here to help. There are greater chances that consumers will buy your app if you integrate In-app purchase.
    I will take you step by step.
    First Download the IAP SDk, there are example you can use. I will help you on the example where the form is used.
    STEP 1:
    In the contructor the form is initialised, then the renderCatologue method is called, then the display.SetCurrent(form) is called to display the form. Notice that when the app starts, this the form that the App will show for the Trial version.
    for this form add the widgets that the user ca access for the trial version say add a list, or a choice group that will link the user to the items you want him to see.
    private void renderProductCatalog(String productData) {
    form.deleteAll();
    form.deleteAll();
    String sb="Por favor, comprar la versión completa para obtener frases más diálogo que le ayudarán a aprender Inglés más rápidamente.";

    try{
    image = Image.createImage("/eng.png");
    // image2 = Image.createImage("/downTrend.PNG");
    // image3 = Image.createImage("/hardTrend.PNG");
    }
    catch (Exception e){}


    stringItem = new StringItem(null, productData, Item.BUTTON);
    // This is the place (adding commands to StringItem) for activating/de-activating
    // StringItem(Product catalog item) to re-purchase consumable/non-consumable item.
    purchaseCommand = new Command("Buy Item " + 0, Command.ITEM, 1);
    stringItem.setDefaultCommand(purchaseCommand);
    stringItem.setItemCommandListener(this);
    stringItem.setLayout(Item.LAYOUT_CENTER | Item.LAYOUT_EXPAND);

    /// Add contents for the free version HERE!!!!say the choice group, and the necessary commands.

    d1= new ChoiceGroup("Demo",Choice.EXCLUSIVE);

    int defa;

    defa= d1.append("Start",null);//...0
    d1.append("Help/ayudar",null);
    d1.append("About/acerca de",null);

    // Set the above choice as the initially selected option
    d1.setSelectedIndex(defa,true);
    form.append(image);
    form.append(sb);
    form.append(stringItem);
    int indexc;
    indexc= form.append(d1);

    form.addCommand(exit);//already implemented
    // frm1.addCommand(ans_q2);
    form.setCommandListener(this);
    form.setItemStateListener(this);

    System.out.println(productData);

    }






    STEP 2:
    Creat a method say paid(), in this method create a form with wigdets such as lists, choice groups or even commands that the user will use as he uses the full version. This full version MUST contain everything that a user can access as he has bought the full version.
    Call this method(paid()) when the purchase is successfull.
    public void paid(){
    Form mForm = new Form("Full Version");

    try{
    image = Image.createImage("/eng.png");
    // image2 = Image.createImage("/downTrend.PNG");
    // image3 = Image.createImage("/hardTrend.PNG");
    }
    catch (Exception e){}


    d2= new ChoiceGroup("",Choice.EXCLUSIVE);

    int defa;

    defa= d2.append("Menu",null);//...
    d2.append("Help/ayudar",null);
    d2.append("About/acerca de",null);

    // Set the above choice as the initially selected option
    d2.setSelectedIndex(defa,true);
    mForm.append(image);


    int indexc;
    indexc= mForm.append(d2);

    mForm.addCommand(exit);//already implemented

    mForm.setCommandListener(this);
    mForm.setItemStateListener(this);
    display.setCurrent(mForm);

    }




    public void purchaseCompleted(PurchaseData data) {

    if (data.getStatus() == PurchaseData.PURCHASE_SUCCESS
    || data.getStatus() == PurchaseData.PURCHASE_RESTORE_SUCCESS) {

    purchasedData = "Successfully bought " + data.getProductId()
    + " and Purchase ticket " + data.getPurchaseTicket();

    storeRepo.store(productIds[0]);
    //dispay form for full version
    paid();
    } else if (data.getStatus() == PurchaseData.PURCHASE_FAILED) {
    purchasedData = "Purchase fail for " + data.getProductId()
    + ". Retry?";
    // form = new Form("Failed");
    // display.setCurrent(form);
    }
    //renderProductCatalog(purchasedData);
    }

    public void productDataReceived(ProductData[] dataItems) {

    String productInfo = null;
    for (int i = 0; i < dataItems.length; i++) {
    // set the localized price and currency
    ProductData productData = dataItems[i];

    productInfo = "Buy " + productData.getProductId() + ":"
    + productData.getLocalizedPrice() + " "
    + productData.getCurrency() + "?";
    }

    renderProductCatalog(productInfo);
    // for updated product purchase info or restore
    updateCatalog();
    }

    So when the App is launched, the user will see the trial version.
    But When He buys the app, He will automatically see the paid version.
    NOTE: Your App must be very good for the user to buy the full version. Avoid developing mediocre apps becoz they wont make you money.
    I wish you success in the App development world. You are welcome, if you have a question please ask again, we are hear to help

  8. #8
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,805

    Re: Nokia Asha IN app purchasing

    Are you sure your post has anything to do with the questions and answers in this thread? Everything seems to have answers, from 2 months ago as I see.

  9. #9
    Registered User
    Join Date
    Apr 2012
    Posts
    13

    Re: Nokia Asha IN app purchasing

    Hi I need help as my app has failed to pass quality assurance.
    After signing up for the IAP for Asha I received the following:
    Practice english r777
    Product ID: 1286962

    Question:
    In the method setID in code, Should I write 1286962? When I did that, The App displayed, BUY 1286962, It did not reveal the product.
    Also which atributes should I add to the JAD file I used Nokia-IAP-Pricepoint-1286962 but I would not access the form for purchasing the product. Please help.

Similar Threads

  1. Nokia Asha 501 LWUIT (Asha SDK 1.0) setScrollable(false) not having an effect
    By Gureen.Ryuu in forum Mobile Java UI and User Experience
    Replies: 1
    Last Post: 2013-10-30, 12:14
  2. Replies: 0
    Last Post: 2013-09-22, 13:12
  3. how to use in-app purchasing in asha web app
    By seniorOtaka in forum Nokia Asha Web Apps
    Replies: 4
    Last Post: 2013-06-06, 10:44
  4. Purchasing direct from Nokia
    By tomcatdub in forum General Development Questions
    Replies: 4
    Last Post: 2007-10-30, 12:43

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×