fieldsye / in-app-purchase-air-ios Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/in-app-purchase-air-ios
Automatically exported from code.google.com/p/in-app-purchase-air-ios
With Flash Builder 4.6 with Air 3.3, the ANE compiled with a minor version
cause the ipa not to be generated. It seems that with Air 3.3 linker warnings
are not suppressed, and Flash Builder/Flash Pro are not able to handle such
large number of warnings. (specifically on Windows)
(http://blogs.adobe.com/airodynamics/2012/06/12/flash-ide-packaging-issue-with-a
ir-3-3/)
What steps will reproduce the problem?
With Flash Builder 4.6, install the ANE. Generating the Ipa never ends (not in
fast mode).
What is the expected output? What do you see instead?
Nothing, the ipa is not packed. It gets stuck at about 57%
What version of the product are you using? On what operating system?
Flash Builder 4.6 - Flex SDK 4.6.0 (build 23201) with Air 3.3.
Windows 7 x64
Please provide any additional information below.
It seems that to fix the problem, you just need to add the linkerOption node in
the platform descriptor file (platform.xml) :
<linkerOptions>
<option>-w</option>
</linkerOptions>
From Adobe, this would fix the issue by suppressing warnings.
Original issue reported on code.google.com by [email protected]
on 30 Jun 2012 at 10:18
Instead of having a concatenated string of "description:code" in
AppPurchaseEvent's error code, it'd be easier to split the two into separate
data fields. It's inconvenient to have to parse the string when, based on the
iOS docs, those values are coming in separately anyway.
Original issue reported on code.google.com by [email protected]
on 28 Feb 2012 at 2:58
What steps will reproduce the problem?
1. While debugging it is showing a problem
What is the expected output? What do you see instead?
I want to implement inapp purchase
error 103: application.initialWindow.extensions is an unexpected
element/attribute
What version of the product are you using? On what operating system?
flash builder 4.5.1 and air 2.6 and Mac OS
Please provide any additional information below.
Here is the link of my code
http://www.pastie.org/2931810
Can you provide the whole sample project?
Any help will be appreciated,
thanks in advance,
Original issue reported on code.google.com by [email protected]
on 28 Nov 2011 at 7:04
I tried to follow the sample usage of the extension. I practically copy-pasted
code and the application first tells me "There are packaging
errors/warnings...." and when I select "Continue", the application does
nothing. It does not even show Button, and List on the screen. I run it on
Emulator.
I am using: FB 4.6, AIR 3.1, IPad2
Original issue reported on code.google.com by [email protected]
on 14 Feb 2012 at 11:33
hi all. I made app and add it for review on itunnesconnect. review is failed.
reason is:
We found that your app initiates the In App Purchase process in a non-standard
manner.
have anyone ideas?
Original issue reported on code.google.com by [email protected]
on 6 Mar 2012 at 9:05
Thank you so much for the steps to get this to work in Flash. I will try it out
today.
Have you ever looked at in-app-purcases for Android or do you know of anyone
who's has developed an air, native extension for this purpose?
Original issue reported on code.google.com by [email protected]
on 7 Nov 2011 at 8:05
Hello,
first: Great work, thanks for sharing!
Does the library support renewing subscriptions? If so, how do I know that my
subscription is still active or has been renewed? I have to make a call to my
backend server each time the subscription has been payed so I can credit the
user a premium-membership.
Thanks
Original issue reported on code.google.com by [email protected]
on 12 May 2012 at 8:36
What steps will reproduce the problem?
1. Compiling an ipa with this iOS iap purchase ANE now produces the following
warning as of Air 3.7, and possibly earlier, which it didn't do before, in Air
3.1:
ld: warning: PIE disabled. Absolute addressing (perhaps -mdynamic-no-pic) not
allowed in code signed PIE, but used in _llvm_unwind from AOTBuildOutput-0.o.
To fix this warning, don't compile with -mdynamic-no-pic or link with
-Wl,-no_pie
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Air 3.7's command-line adt.bat, in Windows Vista
Please provide any additional information below.
Apparently this warning started appearing since the switch to xcode 4.6 (
possibly 4.5 ). To fix, please recompile the ANE, with the build settings
"create position independent executables" changed from NO to Yes.
Original issue reported on code.google.com by [email protected]
on 12 May 2013 at 5:22
I get the expected events, but the receipt is null for both the original and
the current transaction.
This is testing on iOS 5.0.1, Flex SDK 4.6.0
The receipt is provided with the initial transaction, just not in any restored
transactions.
I note that capiextension.m->generateXml deliberately blanks the receipt:
if(t.transactionState == SKPaymentTransactionStatePurchased || t.transactionState){
NSString* d = [[NSString alloc] initWithData:t.transactionReceipt encoding:NSASCIIStringEncoding];
[retXML appendFormat:@"<receipt>%@</receipt>",d];
[d release];
}else {
[retXML appendFormat:@"<receipt> </receipt>"];
}
Original issue reported on code.google.com by [email protected]
on 11 Jun 2012 at 12:58
I'm really keen to use this library but all my projects have been developed in
Flash / AS3.
Can someone describe how we do this using CS5 Actionscript instead of Flex? Is
there a CS5 sample project somewhere we can use?
Thanks
Leon
Original issue reported on code.google.com by [email protected]
on 26 Oct 2011 at 12:40
What steps will reproduce the problem?
1. Buy a consumable item but do not call AppPurchase.manager.finishTransaction
2. Buy the same item again
3. An iTunes message will popup telling me "You already bought this item but it
has not been loaded yet. Tab OK to load it now" (similar to this, I have German
version)
4. Tapping OK will throw an Error event with the message "Unable to connect to
iTunes"
5. From here on it seems impossible to ever buy that item again,
This is sandbox mode, have not tested production yet.
What is the expected output? What do you see instead?
I would expect a restore transaction event or another mechanism that allows me
to resume this transaction (e.g. in case of network disconnect in the moment of
purchase, I am verifying purchases on my server). Right now the error message
prevents me from ever buying this item again
What version of the product are you using? On what operating system?
Windows 7, testing on iPad.
Please provide any additional information below.
Extension works great besides, very good job!
Original issue reported on code.google.com by [email protected]
on 4 Nov 2012 at 2:30
hello.
when i open the app for first time it show a dialog box to connect .
i post my login and password and buy an non-consumable object.
it works perfect.
but when i open the app again it ask me for password again and again to get
access to my purchase app and restore it.
i don't understand how to get off this dialog box after the object is paid and
do not connect every time i open the app ?
Original issue reported on code.google.com by [email protected]
on 31 Jul 2012 at 8:55
I don't seem to be able to get my on device debugger to work and I just posted
this:
http://forums.adobe.com/thread/960184
And I guess that someone here may have the answer to this as well which may
help people like me.
Thanks in advance
Leon
Original issue reported on code.google.com by [email protected]
on 8 Feb 2012 at 1:15
What steps will reproduce the problem?
1. I have created a sample ActionScript Mobile project.
2.I have added appPurches.swc in the build path
3.I have written the exactly same code as you have given in the example.
3.Specified the extension id in MyApp-app.xml
4. and trying to run the app and i m getting the followng error:
////Error Start////////
Process terminated without establishing connection to debugger.
The content cannot be loaded because there was a problem loading an extension:
Error: Requested extension com.adobe.appPurchase could not be found.
Launch command details: "C:\Program Files\Adobe\Adobe Flash Builder
4.5\sdks\4.5.1\bin\adl.exe" -runtime "C:\Program Files\Adobe\Adobe Flash
Builder 4.5\sdks\4.5.1\runtimes\air\win" -profile mobileDevice -screensize
640x920:640x960 -XscreenDPI 326 -XversionPlatform IOS "C:\MyWork\Adobe Flash
Builder 4.5\SampleExtensionApp\bin-debug\SampleExtensionApp-app.xml"
"C:\MyWork\Adobe Flash Builder 4.5\SampleExtensionApp\bin-debug"
/////Error END///////////
I just want to use this in-app-purchase extension in my app,
What version of the product are you using? On what operating system?
I am using Adobe Flash Builder 4.5 with Flex 4.5.1 sdk and Air 3.0 sdk.
Original issue reported on code.google.com by [email protected]
on 25 Nov 2011 at 2:35
What steps will reproduce the problem?
1. Create some non-consumible IAPs.
2. Add an event listener for UPDATED_TRANSACTIONS.
3. Call restoreTransactions.
What is the expected output? What do you see instead?
According to the usage sample I assume the UPDATED_TRANSACTIONS event should be
dispatched, however that's not happening, so if I delete my app and then
reinstall it I don't know if I already bought some product.
If I try to buy the product once more, I receive an alert saying it is already
purchased, and it will be downloaded once again, and I receive an
UPDATED_TRANSACTION event with the transaction set to
Transaction.TRANSACTION_STATE_FAILED. I don't know if that's to be expected,
but if it is so, it adds another problem: when it is safe to assume that the
failed state is from a paid product?
What version of the product are you using? On what operating system?
The ANE is the Nov 4th version. Tested on an iPhone 4.
Original issue reported on code.google.com by [email protected]
on 14 Dec 2011 at 2:49
What steps will reproduce the problem?
1. I cannot find a license file.
Can you please put this in the public domain or under a known open source
licensing?
Original issue reported on code.google.com by [email protected]
on 28 Oct 2011 at 11:44
Small error, but annoying as it looked to me it was returning 0. But actually a
early date in 1970.
What steps will reproduce the problem?
1. trace(transaction.date) in actionscript of any transaction returned
Goto class:
com.adobe.nativeExtensions.AppPurchase.as
Change line 115 (as of writing):
from:
var timest:Number = Number( t.date.toString() );
To:
var timest:Number = Number( t.date.toString() ) * 1000;
Vital for restoring Subscriptions is to know when the transaction occurred
Original issue reported on code.google.com by [email protected]
on 28 Mar 2012 at 3:51
The Product class contains price which is a number and priceLocal that is a
String containing something like it_IT@currency=EUR to state the language used
by the user in the shop and the type of currency he's using. I found that in
ObjectiveC the are formatter to transform this two in a more usefull single
String like 3,99€ to be shown in the shop. This is would be tricky on the AS
side because we don't have this formatter. It's possible to you to add in the
Product class a String containing the price and the currency symbol already
formatted?
Original issue reported on code.google.com by [email protected]
on 20 Dec 2011 at 9:40
What steps will reproduce the problem?
1. Create new ActionScript MobileProject.
And, add AS.swc and appPurchase.ane in ActionScript Build path.
2. Copy the functions in UsageSample. and paste to my project's main.as.
course, the functions rewrite to form ActionScript MobileProject.
3. Try Export release build. I can't build by error.
What is the expected output? What do you see instead?
expected output is "○○○.ipa".
but Error below.
//////////////////////////////
Exception in thread "main"
//////////////////////////////
What version of the product are you using? On what operating system?
Version is Prefixed.
Flash builder4.6
OS:Windows 7
Please provide any additional information below.
I'm Japanese. English is poor. sorry. sorry. sorry.
Original issue reported on code.google.com by [email protected]
on 2 Dec 2011 at 6:58
with flash builder 4.6, i get the following error
Error occurred while packaging the application:
Exception in thread "main" java.lang.Error: Unable to find named traits:
com.adobe.nativeExtensions::AppPurchaseEvent
at adobe.abc.Domain.resolveTypeName(Domain.java:231)
at adobe.abc.Domain.resolveTypeName(Domain.java:148)
at adobe.abc.GlobalOptimizer$InputAbc.resolveTypeName(GlobalOptimizer.java:272)
at adobe.abc.GlobalOptimizer$InputAbc.resolveSlotType(GlobalOptimizer.java:946)
at adobe.abc.GlobalOptimizer$InputAbc.resolveType(GlobalOptimizer.java:535)
Original issue reported on code.google.com by [email protected]
on 25 Feb 2012 at 4:16
What steps will reproduce the problem?
1. Make a non consumable product with tier 11.
2. Purchase it.
3. Purchase it once again.
What is the expected output? What do you see instead?
The expected ouput would be:
- I purchase the product and try to purchase it once again.
- I should get a notification.
- I confirm it and I get an AppPurchaseEvent.UPDATED_TRANSACTIONS event with values indicating the purchase was made.
What I get:
- Product A is already purchase: I try to buy it once again.
- I get a AppPurchaseEvent.UPDATED_TRANSACTIONS event. The state of the transaction is failed, with an error saying it was not possible to connect to the app store:2 (it's not true tho).
- Then I see an alert with a single OK button, saying I already have that product, and it will be downloaded again.
- I press OK, and I don't get any other event.
What version of the product are you using? On what operating system?
The ANE is the Nov 4th version. Tested on several devices: iPhone 4, iPhone
3GS, iPad... all of them with iOS 5.0.1.
Please provide any additional information below.
Made sure no transaction was pending, tried to restore the devices, tried the
app with different products, tried to recreate the problematic product, etc.
Same result.
I noticed that the alert saying I already have the product has two buttons when
the execution flow is what I expect, and only one OK button when it doesn't.
Original issue reported on code.google.com by [email protected]
on 23 Dec 2011 at 6:06
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.