Skip to main content
Participating Frequently
Apr 14, 2015 7:19 PM UTC
Question

|ios|adobe vibration + game center ane conflict

Hello, I am having trouble then I try to use adobe's vibration and Game center ane's in a project.

debug mode log:

[SWF] com.adobe.Vibration - 857 bytes after decompression

[SWF] com.adobe.ane.gameCenter - 2079 bytes after decompression

[SWF] Vibration and Gamecenter.swf - 142 bytes after decompression

Vibration isSupported()

Vibration Constructor: Create an extension context

ArgumentError: Error #3500: The extension context does not have a method with the name initNativeCode.

  at com.adobe.nativeExtensions::Vibration$/initExtension()[/Users/meetshah/Documents/Adobe Flash Builder 4.5/VibrationActionScriptLibrary/src/com/adobe/nativeExtensions/Vibration.as:58]

  at com.adobe.nativeExtensions::Vibration$/get isSupported()[/Users/meetshah/Documents/Adobe Flash Builder 4.5/VibrationActionScriptLibrary/src/com/adobe/nativeExtensions/Vibration.as:43]

  at GameCenterTest()

  at GameCenterTest()

Cannot display source code at this location.

Vibration isSupported()

air sdk: 17.0.0.138

Project:

Dropbox - vibration and gamecenter.zip

This topic is closed to new replies. Start a new post to keep the conversation going.

4 replies

tdwivedi
Adobe Employee
Adobe Employee
Apr 15, 2015 11:09 AM UTC

Hi Nitacawo,

I tried reproducing the issue. And I couldn't find the reference to the path "/Users/meetshah/Documents/Adobe Flash Builder 4.5/VibrationActionScriptLibrary/src/com/adobe/nativeExtensions/Vibration.as" Is it from the swc file that is used in the project ? Can you rather provide the code so that we could find out what is going wrong here ?

-Tushar

Translate
Known Participant
Aug 7, 2015 1:29 PM UTC

Hey there tdwivedi

I am having kinda the same issue with the Vibration ane on iOS only. On Android the same code works perfect.

if (Vibration.isSupported)

{

                vibe = new Vibration();

}

Here is the trace:

Vibration isSupported()

Vibration Constructor: Create an extension context

ArgumentError: Error #3500: The extension context does not have a method with the name initNativeCode.

Tested on an iPad 2

Any clue how i can get around this error?

Translate
tdwivedi
Adobe Employee
Adobe Employee
Aug 11, 2015 7:49 AM UTC

Hi Rares Neamtiu,

We could successfully reproduce the issue. We will be communicating it to the concerned team for further investigation.

-Tushar

Translate