distriqt / airnativeextensions

DEPRECATED: Original repository of the distriqt native extensions and is no longer maintained. Please see our site for the latest ANEs
https://airnativeextensions.com
2 stars 0 forks source link

Push Notification iOS Compilation Problem #137

Closed wztechno closed 10 years ago

wztechno commented 10 years ago

Hello guys,

We are using Adobe Flash Professional CC, AIR SDK 14 windows Based, and we used your native push notification that we bought successfully on Android. Now when we follow the same steps for iOS compiling we get the following error.

Attached is an image that shows the error. Fast Help is needed here. untitled-1

wztechno commented 10 years ago

Here is the XML we used

<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<!-- 
    Usage:

    To localize the description, use the following format for the description element.
    <description>
    <text xml:lang="en">English App description goes here</text>
    <text xml:lang="fr">French App description goes here</text>
    <text xml:lang="ja">Japanese App description goes here</text>
    </description>

    To localize the name, use the following format for the name element.
    <name>
    <text xml:lang="en">English App name goes here</text>
    <text xml:lang="fr">French App name goes here</text>
    <text xml:lang="ja">Japanese App name goes here</text>
    </name>
-->
<application xmlns="http://ns.adobe.com/air/application/14.0">
  <id>com.wztechno.wztechnoapp</id>
  <versionNumber>1.0.0</versionNumber>
  <versionLabel/>
  <filename>WzTechno</filename>
  <description/>
  <name>WzTechno</name>
  <copyright/>
  <initialWindow>
    <content>WzTechno%20Android.swf</content>
    <systemChrome>standard</systemChrome>
    <transparent>false</transparent>
    <visible>true</visible>
    <fullScreen>true</fullScreen>
    <aspectRatio>portrait</aspectRatio>
    <renderMode>auto</renderMode>
    <autoOrients>false</autoOrients></initialWindow>
  <icon>

    <image29x29>Graphics/icon29.png</image29x29>
    <image57x57>Graphics/icon57.png</image57x57>
    <image114x114>Graphics/icon114.png</image114x114>
    <image512x512>Graphics/icon512.png</image512x512>
    <image48x48>Graphics/icon48.png</image48x48>
    <image72x72>Graphics/icon72.png</image72x72>
    <image50x50>Graphics/icon50.png</image50x50>
    <image58x58>Graphics/icon58.png</image58x58>
    <image100x100>Graphics/icon100.png</image100x100>
    <image144x144>Graphics/icon144.png</image144x144>
    <image1024x1024>Graphics/icon1024.png</image1024x1024>
  </icon>
  <customUpdateUI>false</customUpdateUI>
  <allowBrowserInvocation>false</allowBrowserInvocation>
  <android>
    <manifestAdditions><![CDATA[<manifest>
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>]]></manifestAdditions>
  </android>
  <iPhone>
    <InfoAdditions><![CDATA[
  <key>UIDeviceFamily</key>
  <array>
    <string>1</string>
    <string>2</string>
  </array>
]]></InfoAdditions>
    <requestedDisplayResolution>standard</requestedDisplayResolution>
      <Entitlements><![CDATA[
<key>get­task­allow</key>
<true/>
<key>aps­environment</key>
<string>production</string>
<key>application­identifier</key>
<string>CEHN2XGXQN.com.wztechno.wztechnoapp</string>
<key>keychain­access­groups</key>
<array>
<string>CEHN2XGXQN.*</string>
</array>
]]></Entitlements>
  </iPhone>
  <supportedLanguages>en</supportedLanguages>

  <extensions>
       <extensionID>com.distriqt.PushNotifications</extensionID>
   </extensions>
</application>
marchbold commented 10 years ago

Hi,

Your entitlements section isn't quite correct, you're missing some dashes.

        <Entitlements>
            <![CDATA[
                <key>get-task-allow</key>
                <true/>
                <key>aps-environment</key>
                <string>development</string>
                <key>application-identifier</key>
                <string>X5LW23Q6CJ.com.distriqt.test</string>
                <key>keychain-access-groups</key>
                <array>
                    <string>X5LW23Q6CJ.*</string>
                </array>
            ]]>
        </Entitlements>
marchbold commented 10 years ago

Also, Please make sure you are including a recent version of the iOS SDK.

wztechno commented 10 years ago

We are compiling using AIR SDK 14 on Windows Platform.. After we read your tutorials online, yes we found you mentioned something about including a recent version of the iOS SDK, but we are using Adobe Flash CC, and we liked searched all over the program and found nowhere to include the most recent version of iOS SDK. Can you kindly help ? isn't that supposed to be included in AIR SDK 14?

marchbold commented 10 years ago

Hi,

Please see our tutorial on using native extensions for more information:

https://distriqt.uservoice.com/knowledgebase/articles/181029-using-native-extensions

wztechno commented 10 years ago

We did not find in the tutorial a paragraph which explains what to do on a Flash CC, only Flash CS6, and options has changed, do you recommend we compile using command prompt?

wztechno commented 10 years ago

and is it ok if we use iOS SDK 7.1? Or should we stick to to version 6.1?

rilton-lucena commented 9 years ago

I have the same problem, using OSX, Air 14, Flash Builder and SDK 7.1. Any help?

rilton-lucena commented 9 years ago

Worked for me using Air 4.0 and iphone SDK 7.1.