Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

[Released] BFS WP8 Goodies Plugin

Discussion in 'Assets and Asset Store' started by BFS-Kyle, Jul 17, 2013.

  1. BFS-Kyle

    BFS-Kyle

    Joined:
    Jun 12, 2013
    Posts:
    882
    $BFS-WP8-big.jpg

    Our latest plugin for the upcoming Windows Phone 8 platform is now available on the Asset Store! This plugin adds Windows Phone 8 functions that can be called straight from your Unity3d code to open up some of the platform's features to you! Some of the features included in this release include:

    • IAP
    • Social Media Sharing
    • Message Boxes
    • Live Tiles
    • Keybaord Input
    • Trial Application
    • Application reviews
    • Opening links in Browser
    • Syncing between multiple devices

    and more...

    Make the most out of your Windows Phone 8 game with all these platform functions in a super easy to use package! Documentation for every function is included, as well as a sample scene to get you started immediately!

    The plugin is now available on the asset store! Note that it is only compatible with Unity 4.2, so wait for its release before grabbing this package!

    Check it out on the Asset Store here!


    This plugin shares similar functionality with our plugin for Windows 8, which you can check out here!
     
    Last edited: Aug 7, 2013
  2. Mars91

    Mars91

    Joined:
    Mar 6, 2012
    Posts:
    564
    Planning to add ads support?
     
  3. BFS-Kyle

    BFS-Kyle

    Joined:
    Jun 12, 2013
    Posts:
    882
    We don;t have any plans right now, but can definitely look into it. Is there a particular ad provider you are looking for? Pubcenter?
     
  4. BFS-Kyle

    BFS-Kyle

    Joined:
    Jun 12, 2013
    Posts:
    882
    With the announcement of Unity 4.2 being released, and the new Windows 8 and Windows Phone 8 competition with $100,000 of prizes [link], now is the perfect time to get into Windows 8 and Windows Phone 8 development!

    And the plugin is 100% compatible with Unity Free, so you can jump straight in and build immediately! Get the upper hand for this competition and add in features that Microsoft love to show off (live tiles!) and add in features you will love to use (IAP) with the BFS WP8 Goodies Plugin!
     
  5. thetnswe

    thetnswe

    Joined:
    Aug 23, 2010
    Posts:
    46
    Inner-active support would be great.
     
  6. phocker

    phocker

    Joined:
    Sep 12, 2010
    Posts:
    57
    can it assist with win8 snap?
     
  7. BFS-Kyle

    BFS-Kyle

    Joined:
    Jun 12, 2013
    Posts:
    882
    Hi Phocker,

    This plugin cannot, as it is only for Windows Phone 8, not for Windows 8. However, we have our next plugin coming out soon for Windows 8 with similar features available here, as well as new features including support for snapping in Windows 8. You can check it out here.

    -Kyle
     
  8. AlvinHerawan

    AlvinHerawan

    Joined:
    Apr 27, 2013
    Posts:
    4
    Hi, thanks for this great plugin. It helps me a lot to settle the problem with openURL. I haven't really tested the IAP and the Live Tiles support though.

    One rather noob question though as I seldom work with plugins: Can you tell me which files are essential to keep from within the package? I would like to keep my project folders clean and free from unnecessary files. For a starter, I know that the pdf can just be deleted away. So which other files can I remove yet enough to make the whole plugin still works?

    Thank you kindly in advance.
     
  9. BFS-Kyle

    BFS-Kyle

    Joined:
    Jun 12, 2013
    Posts:
    882
    Hi Alvin,

    At the bare minimum, you only need the two .dll files, one in the Plugins/ folder, and the other in the Plugins/WP8 folder. Everything else can be removed.

    But I would recommend keeping also the WP8LiveTileHelper script, as it makes live tiles a bit easier (although it is not technically required, just makes it easier in Unity).

    The other files can be removed (.xml file, .chm file, .pdf file, sample gui script and sample scene).

    Cheers,

    -Kyle
     
  10. nosyrbllewe

    nosyrbllewe

    Joined:
    Oct 18, 2012
    Posts:
    182
    Hi, I was wondering if you would offer a discount for a bundle of your WP8 plugin and your future W8 plugin (which I am guessing is about $20 too) for about $30-35. I am planning on having my game cross-platform between W8 and WP8 and your plugin seems to be the best out of my options. Thanks.
     
  11. EvilDingo

    EvilDingo

    Joined:
    May 7, 2011
    Posts:
    190
    The in app purchase implementation doesn't work. I publish beta in-app purchases in my beta app. When I click my buy button the purchase window comes up like it should, but when I purchase it, it get's an error. I'm using a WP8 device and not testing it in the Unity player.

    System.InvalidOperationException: Operation is not valid due to the current state of the object. at Windows.ApplicationModel.Store.CurrentApp.ReportProductFulfillment(String productId) at WP8Goodies.IAP.<RequestPurchaseAsync>d_3.MoveNext()
     
  12. BFS-Kyle

    BFS-Kyle

    Joined:
    Jun 12, 2013
    Posts:
    882
  13. BFS-Kyle

    BFS-Kyle

    Joined:
    Jun 12, 2013
    Posts:
    882
    Hi Nosyrbllewe,

    At this point we don't have any plans on releasing a discount bundle as the prices for these plugins are already quite low - the alternative for our Windows 8 plugin costs $130 for the same set of functionality.

    That said though, when making a game for both Windows 8 and WP8, our plugins have been created to work in a similar fashion so that it can be used very easily between the two platforms with almost the same structure wherever applicable, so once you get it working on one platform the next should be simple.

    Cheers,

    -Kyle
     
  14. BFS-Kyle

    BFS-Kyle

    Joined:
    Jun 12, 2013
    Posts:
    882
    Hi EvilDingo,

    That is interesting - I will look into this now. Just some extra information - what is the type of item being purchased? A consumable or a durable? By the sounds of it you have everything else set up correctly, but if it is a durable item this issue might exist. Have you tried the same code with a consumable item to see if it works?

    Thanks,

    -Kyle
     
  15. Mars91

    Mars91

    Joined:
    Mar 6, 2012
    Posts:
    564
  16. EvilDingo

    EvilDingo

    Joined:
    May 7, 2011
    Posts:
    190
    Kyle sent me a fix for that IAP purchase error. Yes, it was a durable item.

    Thanks!
     
  17. GameDev01

    GameDev01

    Joined:
    Aug 6, 2013
    Posts:
    1
    I'm also looking for PubCenter plugin for my WP8 game. Thanks.
     
  18. amolnaik3

    amolnaik3

    Joined:
    Jul 19, 2011
    Posts:
    13
    IAP not working. I publish beta in-app purchases in my beta app. When I click buy button it shows "product id was not found:"
    product type is consumable. $wp_ss_20130515_0002.jpg

    Please let me know if anybody has faced such issue.

    Thanks,
    Amol
     
  19. BFS-Kyle

    BFS-Kyle

    Joined:
    Jun 12, 2013
    Posts:
    882
    Hi Amol,

    It looks like your app is not actually running as a beta app, as you are connected with the debugger. To make use of the beta app, what you have to do is upload the app, and then download it from the store like any other app - the only difference is that you will be given a private link to download the app (rather than a public link for anyone to download).

    IAP will only work when you download the beta app from the store properly.

    Take a look at this link for more details about testing IAP on Windows Phone 8 / beta testing:

    http://msdn.microsoft.com/en-us/library/windowsphone/help/jj215598(v=vs.105).aspx

    If you have any other issues, let me know.

    Cheers,

    -Kyle
     
  20. amolnaik3

    amolnaik3

    Joined:
    Jul 19, 2011
    Posts:
    13
    Hi Kyle,

    I had attached screenshot of debug mode. But the same thing happens when i download a beta app properly from the store.
    Please let me know if there's any other reason for this to happen.


    Thanks
    Amol
     
  21. BFS-Kyle

    BFS-Kyle

    Joined:
    Jun 12, 2013
    Posts:
    882
    Hi Amol,

    Hmm that is interesting - I would try two things.

    1. Fully delete the app, and then re-download from the Beta app store and try again.
    2. Make sure that the product ID matches directly that set up in the Beta store - any typo or spaces will result in this error being unable to find the product.
    3. Try adding another beta product (both consumable and durable) to see if you are able to purchase any other items.

    See how this goes for you,

    Cheers

    -Kyle
     
  22. amolnaik3

    amolnaik3

    Joined:
    Jul 19, 2011
    Posts:
    13
    Hi Kyle,

    Thanks for reply we did make 2 product ID in store (Consumable Durable).

    When we deleted the App from device and restarted and installed again its working fine for Consumable product.

    But for durable its giving some error in just attaching the snapshot with this thread please let me know if you know any solution for the same.

    $wp_ss_20130515_0004.png

    Thanks
    Amol
     
  23. BFS-Kyle

    BFS-Kyle

    Joined:
    Jun 12, 2013
    Posts:
    882
    Hi Amol,

    I have found an issue with IAP for durables that will cause what you have seen here. This has been resolved and is going through as an update to the asset store as we speak. I have PM'd you an update to resolve this. But glad to hear the original issue was solved! :)

    Cheers,

    -Kyle
     
  24. ADVS

    ADVS

    Joined:
    Aug 11, 2013
    Posts:
    5
    I bought your plugin. How can I get TRIAL MODE status of my wp8 app?
     
  25. BFS-Kyle

    BFS-Kyle

    Joined:
    Jun 12, 2013
    Posts:
    882
    Hi ADVS,

    You can use the following code to find out if the app is in trial mode:

    Code (csharp):
    1. WP8Goodies.IAP.IsTrial();
    Cheers,

    -Kyle
     
  26. amolnaik3

    amolnaik3

    Joined:
    Jul 19, 2011
    Posts:
    13
    Hi Kyle,

    Can you please elaborate on how to get the product details from windows store?

    Like individual product details as below,
    1. Product ID
    2. Type
    3. Price


    Thanks Regards,
    Amol
     
    Last edited: Aug 12, 2013
  27. BFS-Kyle

    BFS-Kyle

    Joined:
    Jun 12, 2013
    Posts:
    882

    Hi Amol,

    The current implementation doesn't have the functionality for retrieving product details as you have described - it can only load purchased information, or actually conduct a purchase. These details will require an update to the asset store, which I will work on and add in soon.

    Regards,

    -Kyle
     
  28. amolnaik3

    amolnaik3

    Joined:
    Jul 19, 2011
    Posts:
    13
    Ok thanks Kyle.

    Hope to see the new update soon with the same feature.


    Regards,
    Amol
     
  29. amolnaik3

    amolnaik3

    Joined:
    Jul 19, 2011
    Posts:
    13
    Hi Kyle,

    I am using your BFS WP8 Goodies Plugin in my one of the game, while testing the same from beta store its not working.
    When I hit the buy button in game it shows the store Confirm Purchase screen as blank.

    But when I have tested it with the demo of the BFS WP8 goodies plugin its working fine, what may be the possibilities for the same.

    Can you please help me on the same.

    Thanks Regards,
    Amol
     
  30. BFS-Kyle

    BFS-Kyle

    Joined:
    Jun 12, 2013
    Posts:
    882
    Hi Amol,

    The only thing I can think of is a mis-match between the IAP id in the app, and the IAP id setup in the Windows Phone Developer site for your beta app. I haven't seen a blank Confirm Purchase screen before, and a quick search showed no results.

    You could also try restarting your phone, as that may help resolve any OS related issues that may be occuring.

    -Kyle
     
  31. amolnaik3

    amolnaik3

    Joined:
    Jul 19, 2011
    Posts:
    13
    Hi Kyle,

    I have double checked the IAP id in the app and WP developer site its is same. But showing the same result and when I tested it in blank project with BFS WP8 goodies plugin added it works well what could be the reason?

    And one more thing to ask is it required to set the Product Id when we build the project for WP8 in Visual studio file called "WMAppManifest.xml" on Packaging tab?

    Regards,
    Amol
     
  32. BFS-Kyle

    BFS-Kyle

    Joined:
    Jun 12, 2013
    Posts:
    882
    Hi Amol,

    What is the sequence of events directly before trying to purchase the IAP product? Do you use the Windows Phone message box to display a popup, and then on the event directly launch the IAP purchase? It might be related to an issue I have seen previously where system dialogues could not be shown on top of each other, and you needed to wait until the first is fully closed before opening a new dialogue. You could try adding a short delay before launching the IAP purchase window and see if that helps.

    As for the WMAppManifest file, no you shouldnt have to add the product Id in there.

    Let me know if this helps.

    -Kyle
     
  33. appliquette

    appliquette

    Joined:
    Apr 14, 2008
    Posts:
    143
    Hi Kyle,

    I'm getting the same blank screen as described above as well, was there a resolution to this?
    Sometimes the purchases work as intended (ie it loads up the content, and you can hit 'install') other times (more often than not) it just pops up a blank white window with 'confirm purchase' text and nothing else :(
     
  34. BFS-Kyle

    BFS-Kyle

    Joined:
    Jun 12, 2013
    Posts:
    882
    Hi appliquette,

    Did you see my post from a few hours ago? I think it might be related to the events leading up to a request to purchase IAP - what do you do immediately prior to starting an IAP purchase? Are you using a Windows Phone dialogue to confirm the purchase from the user?

    -Kyle
     
  35. appliquette

    appliquette

    Joined:
    Apr 14, 2008
    Posts:
    143
    Hi Kyle,

    Sorry I am fresh to WP8 so not sure what the difference between WP8 Message box is, and the IAP popup?

    My integration is I believe the same as in the demo but using NGUI instead of OnGUI.. (my code is basically the email instructions you have sent to me previously).

    With the IAP function tied to an NGUI Button + UIButton Message
     
  36. BFS-Kyle

    BFS-Kyle

    Joined:
    Jun 12, 2013
    Posts:
    882
    Hi,

    Thanks for the reply - when I talk about the WP8 Message Box, I am referring to the one in the plugin (i.e. WP8Goodies.MessageBox.Show(...); ).

    If you are using NGUI instead of OnGUI then there shouldn't be any issue from what I can see - does it happen 100% of the time? And is your's the same as Amol who has the IAP working in the test scene, but not in your setup?

    Edit: Re-read your post - you say its working sometimes, but mostly not working. I will try to re-produce it here to find what is causing the issue. If you do find anything that you think might be relevant, let me know :)

    Just to confirm, is your testing on the Beta app store?

    Cheers,

    -Kyle
     
    Last edited: Aug 26, 2013
  37. appliquette

    appliquette

    Joined:
    Apr 14, 2008
    Posts:
    143
    Hi Kyle,

    No worries - will do some more fiddling on my end too and see what I can come up with.

    I havent tested the test scene, will give this ago later today and report.

    Yeah Beta App with Beta IAP

    Thanks
     
  38. amolnaik3

    amolnaik3

    Joined:
    Jul 19, 2011
    Posts:
    13
    Hi Kyle,

    I am not using the WP message box to display pop up for purchase. But I am directly calling API of IAP purchase on button click event.

    But still some time it shows the confirmation purchase screen and some time its not. Please help me on this.


    Regards,
    -Amol
     
  39. appliquette

    appliquette

    Joined:
    Apr 14, 2008
    Posts:
    143
    any more luck with this? I havent been able to get anything different happening :(
     
  40. BFS-Kyle

    BFS-Kyle

    Joined:
    Jun 12, 2013
    Posts:
    882
    Hi Appliquette, Amol,

    I have been trying to reproduce this error but I can't get it to happen on my end. The one thing I have been able to create is a "Confirm Purchase" screen with "Verifying..." and scrolling dots, which can stay up for an extended period of time. When you have the issue, do you not even see the "Verifying..." text and scrolling dots?

    Only things I can think to try are to 1. Reboot the phone and try again, and 2. Make sure you are on a stable internet connection, as it must go out over the internet to process the purchase.

    -Kyle
     
  41. TerraCo

    TerraCo

    Joined:
    Jun 8, 2013
    Posts:
    26
    Hi Kyle,
    Is this update live on the Asset store? I am having trouble purchasing consumable items as well as durable. Getting the exact same error as Amol.
    Cheers,
    TerraCo
     
  42. BFS-Kyle

    BFS-Kyle

    Joined:
    Jun 12, 2013
    Posts:
    882
    Hi TerraCo,

    What error is it that you are getting? Is it "Product ID not found"? Or do you see a blank screen when going to Confirm Purchase?

    These are two very different issues. The first can be resolved by making sure you publish your Windows Phone 8 app as a beta app in the store which will allow you to fully test all functionality, including IAP. The second (blank Confirm Purchase screen) is still being investigated.

    -Kyle
     
  43. TerraCo

    TerraCo

    Joined:
    Jun 8, 2013
    Posts:
    26
    Hi Kyle,

    The App is published to the Beta store, as well as my in game items. I am not even getting to the Confirm Purchase page.

    This is the error I get when purchasing an item from the app. The app is downloaded from the store.
    $wp_ss_20130902_0001.jpg

    Cheers,
    TerraCo
     
    Last edited: Sep 2, 2013
  44. BFS-Kyle

    BFS-Kyle

    Joined:
    Jun 12, 2013
    Posts:
    882
    Hi TerraCo,

    That is odd - that you dont even see the purchase window and get the error straight away. Are you sure you are entering a valid Product ID, and not a null string?

    Could you paste in the relevant code directly around requesting an IAP purchase?

    -Kyle
     
  45. TerraCo

    TerraCo

    Joined:
    Jun 8, 2013
    Posts:
    26
    Here is the code block regarding IAP

    Code (csharp):
    1. using UnityEngine;
    2. using System.Collections;
    3.  
    4. public class IAP : MonoBehaviour
    5. {
    6.     public string Item = null;
    7.     private string m_IapResponse = "";
    8.     private bool m_OKButtonPressed = false;
    9.  
    10.     void Awake()
    11.     {
    12.         WP8Goodies.MessageBox.OnMessageBoxButtonSelected += OnMessageBoxButtonPressed;
    13.  
    14.         WP8Goodies.IAP.OnIAPPurchaseFailed += OnIAPPurchaseFailed;
    15.         WP8Goodies.IAP.OnIAPPurchaseSucceeded += OnIAPPurchaseSucceeded;
    16.     }
    17.     void OnMessageBoxButtonPressed(bool a_OKButtonPressed)
    18.     {
    19.         m_OKButtonPressed = a_OKButtonPressed;
    20.     }
    21.     void OnClick()
    22.     {
    23.         WP8Goodies.IAP.RequestPurchase("100bucks");
    24.     }
    25.     void OnIAPPurchaseSucceeded(string a_ProductID)
    26.     {
    27.         WP8Goodies.MessageBox.Show("Purchase success" + m_IapResponse, "Purchase", true);
    28.         Score.bucks += 100;
    29.     }
    30.  
    31.     void OnIAPPurchaseFailed(string a_ProductID, string a_Error)
    32.     {
    33.         WP8Goodies.MessageBox.Show("Purchase failed" + a_Error, "Purchase", true);
    34.     }
    35.     void OnGUI()
    36.     {
    37.         GUI.Label(new Rect(100, 100, 100, 100), "IAP Response\n" + m_IapResponse);
    38.     }
    39. }
    And here is a pic of the item in the Beta Store

    $store.png
     
  46. TerraCo

    TerraCo

    Joined:
    Jun 8, 2013
    Posts:
    26
    Hi Kyle,

    I have some more info. Tested again with Durable items and I am sometimes getting the blank Confirm page with COM errors, yet sometimes the purchase works. The error also comes up when I cancel the purchase (this may just be the exception thrown when a purchase is cancelled, thought I'd double check)

    Error:
    system.runtime.interopservices.COMException (0x80004005)

    Consumable items still a no go. Get the same error in the pic posted earlier. I'll try create new consumables with new ID's for testing purposes.

    Cheers,

    Terraco
     
  47. amolnaik3

    amolnaik3

    Joined:
    Jul 19, 2011
    Posts:
    13
    No More luck on the same. PLease help anybody have the solution for the same...!!

    Regards,
    -Amol
     
  48. TerraCo

    TerraCo

    Joined:
    Jun 8, 2013
    Posts:
    26
    I'm just going to work around it at the moment and use Durable items for the time being. I might look at another solution if this hasn't been fixed by the time I need to release my game.
     
  49. BFS-Kyle

    BFS-Kyle

    Joined:
    Jun 12, 2013
    Posts:
    882
    Hi TerraCo,

    That is interesting - but it sounds like for the consumable purchase (100bucks) it is showing the display, then proceeding, then it fails? Or does it not show anything at all and you click the purchase button, then immediately the error comes up? Just trying to find out where in the process it is failing.

    My suggestion would be to try changing the IAP product ID to not have any numbers in it - try all letters ("hundredBucks") and see if that is any different.

    -Kyle