INTEL XDK FILETRANSFER ERROR - runtime-error

I'm trying to download a file from internet and memorize on my mobile but I have a problem when define a variable type problem FileTransfer().
The message is:" FileTransfer is not defined".
I have put a cordova plugin filetransfer in a xml file.
Follow the code.
Thanks.
/* Intel native bridge is available */
var onDeviceReady=function()
{
//hide splash screen
intel.xdk.device.hideSplashScreen();
try{
var ft = new FileTransfer();
}catch(e)
{
alert(e.message);
}
};
document.addEventListener("intel.xdk.device.ready",onDeviceReady,false);

I assume you're talking about a cordova plugin like this one:
https://github.com/apache/cordova-plugin-file-transfer
In the Intel XDK you need to include all the cordova plugins that your project is using. On the project page there's a collection of cordova plugins with check boxes for each one. There are a few "core" plugins, like Accelerometer, Camera, File &c. There are also "Featured and Custom" Plugins.
Below these are "Third Party Plugins". Expand that and there's a button labeled "Get Plugin from the Web". Click on that and enter the name ("FileTransfer"), the plugin id from the plugin.xml file ("org.apache.cordova.file-transfer") and the url of the git repository ("https://github.com/apache/cordova-plugin-file-transfer.git").
Then click "Import" and you should be good to go.
Even though this is a plugin from Cordova, since it's not in the "Included Plugins" it's treated as a "Third party plugin". Because of this, it will not be included in the Emulator, AppPreview or the Debug tab environment, so the only way to test it is to build the application and install the built app on a device.

Related

how to implement ios & android google login in capacitor?

I am using capacitor-firebase-auth to set up my app. Already follow below guide line to setup, but the result still return
"CapacitorFirebaseAuth" plugin is not implemented on ios
URL: undefined
is anyone know what is problem?
Add custom URL schemes to your Xcode project:
Open your project configuration: double-click the project name in the left tree view. Select your app from the TARGETS section, then select the Info tab, and expand the URL Types section.
Click the + button, and add a URL scheme for your reversed client ID. To find this value, open the GoogleService-Info.plist configuration file, and look for the REVERSED_CLIENT_ID key. Copy the value of that key, and paste it into the URL Schemes box on the configuration page. Leave the other fields blank.
You need to add the URL that is requested in the info.plist file of your project, you will find this in the main target of your app [1]: https://i.stack.imgur.com/PLLgf.png
Btw, you will probably also need to add GoogleService-Info.plist to your project as well if you haven't already, you can find this in the project settings of your firebase panel (cog icon top left on firebase dashboard) and setup the SDK for iOS etc.
If you don't know your reversed-client ID, follow the instructions above to get the GoogleService-Info.plist, it is located in that file. Firebase will also give you instructions as to how to configure your project.

Universal Link does not open app in ad hoc installable build

I have added universal link support for an app. The following are added
aasa file is added at the root of the Website URL.
The entitlements file contains the appropriate URL
When the device is connected and app is installed using Xcode in Debug mode, the Universal linking works (Tapping on a link present in Mail opens the app).
However, when the app is archived and installable is created, tapping on the link opens the app in Safari Browser instead of opening the installed app.
Am I missing any other detail specifically while creating an archived installable ?
Resolved:
Add the .entitlements file in the Build Phases -> Copy Bundle Resources option.
While exporting validate that the entitlement for Associated Domain is available. If not, then turn the Capability On/Off, Close Xcode and reopen and then retry. Once it is available, then export the Archive.
Lastly, set a valid path "/somepath" instead of simply "*" in the aasa file.
Making the above changes helped to get it working.

Wordpress: how to detect WP is run from website and not application and propose to download application?

I have a responsive WP blog that I converted into an application with cordova.
(and added some extra features).
My idea would be to prompt an user that uses mobile to install the application if he run the site in his mobile browser instead in his application.
Something like:
if (isMobile() && !isApplication()) {
var download = prompt('Would you like to install the application instead ?');
....
}
Maybe such a plugin does already exist in WP ?
I use cordova-plugin-device to archive this for WP:
if(device.platform.toUpperCase().match(/WIN32NT|WINCE|WINDOWS/)) {
var download = prompt('Would you like to install the application instead ?');
....
}

Can't add an add-on to my alfresco server 4.2.f

(Sorry for my english)
I'm trying to install the add-on: https://github.com/share-extras/reset-password-dialog. I do what it says to do to install it:
I put the "reset-password-dialog-2.0.1.jar" file in: /opt/alfresco-4.2.f/tomcat/shared/lib/
I then restart the alfresco server by doing:
/opt/alfresco-4.2.f/alfresco.sh stop
/opt/alfresco-4.2.f/alfresco.sh start
After the restart there should be a link to reset my password on the login screen but I don't see it
I've tried to activate the add-on by going on the module deployment page but on it I only see "Alfresco portlet extension" in available module
I have also tried to put the file in different directory like: /opt/alfresco-4.2.f/tomcat/lib/ and /opt/alfresco-4.2.f/tomcat/webapps/alfresco/WEB-INF/lib/
Is this the correct way to add an add-on ?
The plugin which you are using is not designed for the latest version or version which you are using.There are some files which are changed in alfresco version 4.2f.I have designed new solution which is compatible with your version.There may be some designing issue, but you can change it in login.get.html.ftl file.Functionality is working.I will soon update changes in git repo.
Git location for this project is as below.
https://github.com/krutik-jayswal/alfresco-solutions/tree/master/reset-password-dialog.

toolbar button to upload to Netsuite? (in Aptana Studio 3)

I have Aptana Studio 3, build: 3.0.9.201202141038
I'm using it to edit some Netsuite client scripts (javascript). The netsuite plugin lets me upload scripts to netsuite, which is great, but I have to right click on the filename in the project explorer, pick "Netsuite" and then "Upload"... too many clicks.
What I want is one button to stick on the toolbar that will do the upload. Is this customization possible? Not that I'm lazy but when debugging it becomes a pain to do so much right-clicking.
In Eclipse/Aptana, the "Project Explorer" can do this. If you select a project and/or file within that project, the "Upload" buttons are made available IF you have set up a remote connection to that project.
I am not certain if your uploads/pushes to Netsuite are via FTP but, if they are, just add your remote connection to the project. To do this, expand your project folder the project in the Project Explorer view and then right-click on the Connections icon to add a new (FTP) connection.Once this is setup, any file selected in the Project Explorer can be uploaded with a simply button click from this view.
Not sure if that is exactly what you want but, in the meantime, might get you closer to it!
Hit ctrl+shift+; and the file will save and upload.

Resources