adobe air native extension config files - configuration

I've been googling for something seemilgly simply, but I can't seem to find an answer: I am building some adobe native extension (ios/android). The native code is expecting to find a config.plist (ios) or .properties(android) file to work. The file is expected to be in the main res bundle (ios) or assets folder (android).
How should the adobe air app developer provide this file? Obviously I cannot package it inside the .ane file since it's app-specific...
Thanks!

I think you should be looking to the application descriptor for this sort of information. Eg info.plist additions can be added to the descriptor by adding the InfoAdditions node of the iphone section, for example:
<iPhone>
<InfoAdditions>
<![CDATA[
<key>UIRequiresPersistentWiFi</key>
<string>NO</string>
]]>
</InfoAdditions>
</iPhone>
http://help.adobe.com/en_US/as3/iphone/WS789ea67d3e73a8b2-48bca492124b39ac5e2-7ffb.html
And android has the manifest additions:
<android>
<manifestAdditions>
<![CDATA[
<manifest>
<uses-permission android:name="android.permission.INTERNET"/>
<application>
<receiver ... />
</application>
</manifest>
]]>
</manifestAdditions>
</android>

Related

CSS and images of a Razor Class Library not loaded if adding reference directly from DLL

I have a RCL with razor components that have their own scoped CSS and some resources (like png background, etc.) in the wwwroot folder.
If I consume this library from a Blazor server app doing the add reference to the project in the same solutions, it works perfectly like described here
https://learn.microsoft.com/en-us/aspnet/core/blazor/components/class-libraries?view=aspnetcore-6.0&tabs=visual-studio
But If I compile the RCL and add the reference pointing directly to the DLL nor CSS neither images are loaded
<Project Sdk="Microsoft.NET.Sdk.Web">
<!-- it works-->
<ItemGroup>
<ProjectReference Include="..\BlazorRCL.Library\BlazorRCL.Library.csproj" />
</ItemGroup>
<!-- doesn't work
<ItemGroup>
<Reference Include="BlazorRCL.Library">
<HintPath>..\BlazorRCL.Library\bin\Release\net6.0\BlazorRCL.Library.dll</HintPath>
</Reference>
</ItemGroup>
-->
</Project>

Actionscript 3.0 Namespace is invalid in the application descriptor file

I am trying to make an Android app. Everything was working fine until I tried to implement ads. Now when I try to publish my game to my phone it gives me the error message "Error creating files. Namespace is invalid in the application descriptor file". What I have tried is changing to and have been looking online for quite some time with no luck as to fixing this.
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<application xmlns="http://ns.adobe.com/air/application/20.0">
<id>keepmoving</id>
<versionNumber>1.0.2</versionNumber>
<versionLabel></versionLabel>
<filename>keep moving</filename>
<description/>
<!-- 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>-->
<name>keep moving</name>
<!-- 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>-->
<copyright/>
<initialWindow>
<content>keep%20moving.swf</content>
<systemChrome>standard</systemChrome>
<transparent>false</transparent>
<visible>true</visible>
<fullScreen>true</fullScreen>
<aspectRatio>portrait</aspectRatio>
<renderMode>direct</renderMode>
<autoOrients>false</autoOrients></initialWindow>
<icon/>
<customUpdateUI>false</customUpdateUI>
<allowBrowserInvocation>false</allowBrowserInvocation>
<android>
<manifestAdditions><![CDATA[
<manifest android:installLocation="auto">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<application>
<meta-data android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
<activity android:name="com.google.android.gms.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" android:theme="#android:style/Theme.Translucent"/>
</application>
</manifest>
]]></manifestAdditions>
</android>
<extensions>
<extensionID>so.cuo.platform.admob</extensionID>
</extensions>
</application>
I've had the same problem with Adobe Air 24. Upgrading to Adobe Air 31 fixed it for me.

How do I package a Tizen Web Widget with a Tizen Web Application for my smartwatch?

I created a Web Widget that I want to push to my watch. The Tizen Documenation says a widget cannot be deployed standalone. So, I am trying to bundle my Widget with a Web Application. I have successfully pushed the Web Application to my watch, but I can't get the widget to go with it. I tried following the steps here: https://developer.tizen.org/development/getting-started/web-application/application-development-process#multi
My Web Widget is called JohnDoeWidget. The Web Application I bundled it with is called BuddyUI (It's the sample app). In the Tizen IDE, in the Project Explorer, it says "JohnDoeWidget [With BuddyUI] wearable-2.3.2". So I think I did that part correctly. When I push BuddyUI to my phone, there is no widget with it, though.
In the BuddyUI config.xml, in the Tizen (or advanced) menu, the Web Widget section has nothing in it. Surely this is the problem! However, I cannot figure out how to add the JohnDoeWidget to this. I tried manually editing the config.xml file, but then when it builds, it says "JohnDoeWidget exists with a different web widget project.". The BuddyUI config.xml looks like this
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="(removing link)" xmlns:tizen="(removing link)" id="(removing link)" version="1.0.0" viewmodes="maximized">
<tizen:application id="yUnJzQvDKJ.BuddyUI" package="yUnJzQvDKJ" required_version="2.3"/>
<content src="index.html"/>
<feature name="(removing link)/feature/screen.size.normal"/>
<icon src="icon.png"/>
<name>BuddyUI</name>
<tizen:privilege name=(removing link)/privilege/application.launch"/>
<tizen:profile name="wearable"/>
<tizen:setting hwkey-event="enable"/>
</widget>
What I tried to do was change it to this, with no luck.
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="(removing link)" xmlns:tizen="(removing link)" id="(removing link)" version="1.0.0" viewmodes="maximized">
<tizen:application id="yUnJzQvDKJ.BuddyUI" package="yUnJzQvDKJ" required_version="2.3"/>
<content src="index.html"/>
<feature name="(removing link)/feature/screen.size.normal"/>
<icon src="icon.png"/>
<name>BuddyUI</name>
<tizen:privilege name="(removing link)/privilege/application.launch"/>
<tizen:profile name="wearable"/>
<tizen:setting hwkey-event="enable"/>
<tizen:app-widget id="Fttrlmw6YQ.JohnDoeWidget.JohnDoeWidget" primary="true">
<tizen:widget-label>Hello Web Widget!</tizen:widget-label>
<tizen:widget-content src="index.html">
<tizen:widget-size preview="preview.png">2x2</tizen:widget-size>
</tizen:widget-content>
</tizen:app-widget>
</widget>
I also tried changing the app-widget id to yUnJzQvDKJ.BuddyUI.JohnDoeWidget but that gives the error "JohnDoeWidget exists with a different web widget project.".
How do I add a widget to an existing web application?
--
Edit:
I also tried the following:
I created a new Web Application
Bundled a new web widget with it
Pushed it to my watch. The app showed up on my watch, but the widget did not.
Web widget is not support under Gear S2. (I can't be sure about S3.)
Look at this document.
Web widget is supported from 2.3.2. but but gear s2 is 2.3.1.
I don't know what is your smartwatch but I know every samsung smart watchs have OS under tizen 2.3.1.
I check my solution in 2.3.2 emulator on Tizen Studio latest version.
and make sure it is works on the emulator.
But it is not works on my samsung gear s2.
So it is right operation "web widget" is not working on real targets in current time.
Don't edit config.xml to add a widget.
After you check the widgets for adding a your project in package multi menu in link, Tizen Studio change your config.xml to add widget.
You can see it in unzipped BuddyUI.wgt
Your error seems to be happened because the duplicated widget tag.
I think auto generated config.xml after you build that may have two same app-widget tag.
Just do following process and build UI project.
In the Web UI application project context menu, select Properties > Tizen Studio > Package > Multi.
Select the check box for the web widget applications, and click OK.
You can check and see how Tizen studio make it. just unzip wgt file.
I create basic UI and TestWidget1 and merge it one wgt file with upper process. it show following tree of files after unzip.
├── author-signature.xml
├── config.xml
├── css
│   └── style.css
├── icon.png
├── index.html
├── js
│   └── main.js
├── signature1.xml
└── widget
└── TestWidget1
├── css
│   └── style.css
├── icon.png
├── index.html
├── js
│   └── main.js
└── preview.png
And also has following config.xml
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns:tizen="http://tizen.org/ns/widgets" xmlns="http://www.w3.org/ns/widgets" id="http://yourdomain/BasicUI2" version="1.0.0" viewmodes="maximized">
<tizen:app-widget id="LRVQWwNeO1.BasicUI2.TestWidget1" primary="true">
<tizen:widget-label>Hello Web Widget!</tizen:widget-label>
<tizen:widget-content src="widget/TestWidget1/index.html">
<tizen:widget-size preview="widget/TestWidget1/preview.png">2x2</tizen:widget-size>
</tizen:widget-content>
</tizen:app-widget>
<tizen:application id="LRVQWwNeO1.BasicUI2" package="LRVQWwNeO1" required_version="2.3.2"/>
<content src="index.html"/>
<feature name="http://tizen.org/feature/screen.size.all"/>
<icon src="icon.png"/>
<name>BasicUI2</name>
<tizen:profile name="wearable"/>
</widget>

Push Service plugin for BlackBerry WebWorks 2.0.0.54 error (Cordova 3.2) (newest versions of both SDKs)

I'm trying to use the Push Service plugin in my BlackBerry Webworks app (BB10 in HTML5).
I added the plugin through the command line like the documentation says, and checked that the com.blackberry.push folder was infact inside my plugins folder in my project. I ran the app in my device and the Web Inspector gave the next error:
TypeError: 'undefined' is not an object (evaluating 'window.webworks.defineReadOnlyField')
This error appears when the plugin tries to define the push constants like SUCCESS or INVALID_PPG_SUBSCRIBER_STATE, so obviously the plugin never starts to work and I can't use the push service.
I have my Push credentials fine (they work fine in my OS 7 app), and I was very carefull when I wrote the config.xml file. Here it is:
<widget id="Sample"
xmlns="http://www.w3.org/ns/widgets"
xmlns:cdv="http://cordova.apache.org/ns/1.0" version="0.0.1">
<name>Sample</name>
<license href="http://www.apache.org/licenses/LICENSE-2.0"/>
<author email="something#somwhat.com" href="http://www.something.com">Something</author>
<content src="splash.html"/>
<access uri="http://www.mypushserver.com/Registro_Portalesv4/modules/Register" subdomains="true"></access>
<access origin="*"/>
<preference name="fullscreen" value="true"/>
<preference name="webviewbounce" value="true"/>
<description>Example</description>
<icon src="img/icono.png"/>
<feature id="blackberry.app"/>
<feature id="blackberry.push" />
<feature id="blackberry.system" />
<feature id="blackberry.invoked" />
<feature id="blackberry.ui.dialog" />
<feature id="org.apache.cordova" required="true" version="1.0.0" />
<rim:permissions>*
<rim:permit>access_shared</rim:permit>
<rim:permit>post_notification</rim:permit>
<rim:permit system="true">_sys_use_consumer_push</rim:permit>
<rim:permit>read_device_identifying_information</rim:permit>
<rim:permit>access_pimdomain_messages</rim:permit>
<rim:permit>bbm_connect</rim:permit>
<rim:permit>run_when_backgrounded</rim:permit>
</rim:permissions>
<rim:invoke-target id="example.sample.invoke.push">
<type>APPLICATION</type>
<filter>
<action>bb.action.PUSH</action>
<mime-type>application/vnd.push</mime-type>
</filter>
</rim:invoke-target>
<!-- Have an invoke entry here for when a notification is clicked on in the BlackBerry Hub -->
<!-- This will cause the application to be opened -->
<rim:invoke-target id="example.sample10.invoke.open">
<type>APPLICATION</type>
<filter>
<action>bb.action.OPEN</action>
<mime-type>text/plain</mime-type>
</filter>
</rim:invoke-target>
</widget>
What I did notice was that the function "window.webworks.defineReadOnlyField" is located in the webworks-1.0.4.11.js file wich I don't have included in my project because I'm using cordova.js as the BlackBerry WebWorks Documentation, Upgrading to WebWorks 2.0 suggested. So I think that maybe the push plugin is not updated for the new SDK or I'm missing something as well.
Any ideas? Thanks in advanced!
PS: I'm porting my app from Phonegap Android, and worked fine when I ported it to Blackberry, except for the plugins, wich I had to add and adapt so they could work (except for the push plugin).
The problem solves by downloading the newest version of the PushService Plugin (updated 10 hours after I posted the question), that has fixed all the problems I mentioned on my question.
Also, don't forget to add a tag with the ppg url to you config.xml file, otherwise the push service won't work.

My html5 game is not working in BB10 simulator

I have created one html5 game.
As per bb10 webworks guidelines I have made config.xml file.
my game is working fine in ripple emulator .But when i tested it in BB10 Dev Alpha Simulator only black screen appears..
what is issue??
I have uploaded my code here.
config.xml
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets"
xmlns:rim="http://www.blackberry.com/ns/widgets"
version="1.0.0.5" id="mani" xml:lang="en">
<author href="http://www.example.com/"
rim:copyright="Copyright 1998-2012 My Corp">My Corp</author>
<name>mani</name>
<icon src="logo.png"/>
<content src="index.html"/>
<feature id="blackberry.identity" required="true" version="1.0.0.0"/>
</widget>
And I added script tag in index.html file.
Rest thing is untouched.
index.html
<script src="local:///chrome/webworks.js" type="text/javascript"></script>
If you are getting a black screen, then I expect there is a runtime error that has prevented your game from starting and/or
Here are instructions on how to use remote-web inspector. I recommend connecting, opening the console panel and reloading your app. It should tell you right away if there is an error:
https://developer.blackberry.com/html5/documentation/web_inspector_overview_1553586_11.html
Do you have any remote content being used in your app? If so, I suspect the application does not have permission to access that content as I don't see any <access> elements in your config.xml. Make sure you properly whitelist all remote URLs: https://developer.blackberry.com/html5/documentation/access_element_834677_11.html