Coder Social home page Coder Social logo

purplelilgirl / unity-nativeappstore Goto Github PK

View Code? Open in Web Editor NEW
22.0 3.0 8.0 1.13 MB

Unity Plugin that allows opening of an app in the iOS and Android Appstore

License: MIT License

Java 97.45% Objective-C 0.11% Objective-C++ 0.68% C# 1.77% C 0.01% C++ 0.01%

unity-nativeappstore's Introduction

Unity-NativeAppstore

Unity Plugin that allows opening of an app in the iOS and Android Appstore

iOS

  • uses SKStoreProductViewController when its available, defaults to OpenURL
  • don't forget to include StoreKit.framework in Build Phases Link Binary with Libraries
  • to prevent the Status Bar showing in the Appstore view, add View Controller based Status Bar to Info.plist and set it to false

Android

  • uses Uri Intent

Project Structure:

UnityProject - Unity Project folder, includes NativeappstoreHandler, NativeAppstoreTestScene

UnityPackage - Unity Package that can be imported to any Unity Project

AndroidPluginProject - source code of NativeAppstore.jar

unity-nativeappstore's People

Contributors

purplelilgirl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

unity-nativeappstore's Issues

Crash when run on device Iphone 5, 5s , 6, 6s, 7, 8 but don't crash on Ipad and iphone 6,7,8 plus

Hello,
When i use this package to show store view in ios have problem.
My game crash on Iphone 5, 5s , 6, 6s, 7, 8 but don't crash on Ipad and iphone 6,7,8 plus
this is Text log :
Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and [SKStoreProductViewController shouldAutorotate] is returning YES'
*** First throw call stack:
(
0 CoreFoundation 0x000000010e2f21e6 __exceptionPreprocess + 294
1 libobjc.A.dylib 0x000000010d8f4031 objc_exception_throw + 48
2 CoreFoundation 0x000000010e367975 +[NSException raise:format:] + 197
3 UIKit 0x000000010a793e37 -[UIViewController __supportedInterfaceOrientations] + 917
4 UIKit 0x000000010a782c21 -[UIViewController _preferredInterfaceOrientationGivenStatusBarAndDeviceAndOrientation:] + 90
5 UIKit 0x000000010a7937e4 -[UIViewController _preferredInterfaceOrientationForPresentationInWindow:fromInterfaceOrientation:] + 537
6 UIKit 0x000000010b1ffe9d -[_UIFullscreenPresentationController _adjustOrientationIfNecessaryInWindow:forViewController:preservingViewController:] + 575
7 UIKit 0x000000010a74338c -[UIPresentationController _presentWithAnimationController:interactionController:target:didEndSelector:] + 928
8 UIKit 0x000000010a786c71 -[UIViewController _presentViewController:modalSourceViewController:presentationController:animationController:interactionController:completion:] + 1519
9 UIKit 0x000000010a788864 -[UIViewController presentViewController:withAnimationController:completion:] + 4602
10 CoreFoundation 0x000000010e275ccc invoking
+ 140
11 CoreFoundation 0x000000010e275b84 -[NSInvocation invoke] + 308
12 UIKit 0x000000010a7687d4 -[_UIDelayedPresentationContext finishDelayedPresentation:] + 230
13 UIKit 0x000000010a7840ba -[UIViewController _endDelayingPresentation] + 93
14 libdispatch.dylib 0x00000001102fe73b _dispatch_call_block_and_release + 12
15 libdispatch.dylib 0x00000001102ff779 _dispatch_client_callout + 8
16 libdispatch.dylib 0x0000000110309778 _dispatch_main_queue_callback_4CF + 1279
17 CoreFoundation 0x000000010e2b4c99 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9
18 CoreFoundation 0x000000010e278ea6 __CFRunLoopRun + 2342
19 CoreFoundation 0x000000010e27830b CFRunLoopRunSpecific + 635
20 GraphicsServices 0x000000010f82fa73 GSEventRunModal + 62
21 UIKit 0x000000010a5d10b7 UIApplicationMain + 159
22 fishfrenzy 0x0000000101d1a002 main + 146
23 libdyld.dylib 0x0000000110374955 start + 1
24 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

Can you help me ?
Thank you so much !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.