phonegap Facebook login button hash key issue - javascript

I'm using facebook connect plugin for using facebook api to login into my app so I used a sample project and created a simple facebook app to get the app ID and the API was Ok till I came with a message in facebook dialog saying the key "AWiYld2HXlJFTSeTlXo9NY-CTAU" doesnt match any hashed keys into your app.
So I went to facebook app and added that for android hash key that still didnt worked so what can I do to make this working, so could you help me I'm really locked up.
Thank you for helping me in advance.

I fixed this by uninstalling my test app, and then reinstalling it.
I'm pretty sure "AWiYld2HXlJFTSeTlXo9NY-CTAU" means that you don't have a key assigned.. because that was mine too, when I originally built the app without an android key.. I kept trying to add a key, and rebuild it.. with hydration on.. and kept getting this error saying my key "AWiYld2HXlJFTSeTlXo9NY-CTAU" wasn't found in my FB app settings.

Here is the solution: - create your own keystore
you need the keytool of java (jre)
open the terminal and type:
keytool -genkey -v -keystore example.keystore -alias example -keyalg RSA -keysize 2048 -validity 10000
follow the steps (passwords, name, location)
then type:
keytool -exportcert -alias example -keystore C:\example.keystore | openssl sha1 -binary | openssl base64
then in phonegap build add your new autosigned key
https://build.phonegap.com/people/edit#new-android-key
thats all
reference:
http://circlecube.com/2013/02/keystore-for-android-app-development/

Related

Launching on android WEBAPP with ADB

Is there a method to launch a web app using adb?
The web app is created using manifest.json and save on android using chrome browser.
I've tried to get the package name of the web application using adb shell pm list packages but nothing seems to match.
I want to launch my web app this way adb shell am start -n com.package.name/com.package.name.ActivityName
I've also tried this way adb shell am start -a android.intent.action.VIEW -d "url". This works but it is not what I am looking for.
Assuming you are coming from Javascript world (as you could have done this by looking at adb logs), this should be what you are looking for
adb shell am start -a com.google.android.apps.chrome.webapps.WebappManager.ACTION_START_WEBAPP -n com.android.chrome/org.chromium.chrome.browser.webapps.WebappLauncherActivity --es "org.chromium.chrome.browser.webapp_url" "{your_url}" --es "org.chromium.chrome.browser.webapp_mac" "{webapp_mac}"
Note that this url has to match the url/url-ending you have mentioned in the start_url that you have mentioned in the manifest.json of yours, else it will just open it as another chrome tab.
Another caveat here is you have to pass web app mac validation check, which is done by the core android class mentioned here - WebappAuthenticator
Chrome does not keep a store of valid URLs for installed web apps
(because it cannot know when any have been uninstalled). Therefore,
upon installation, it tells the Launcher a message authentication code
(MAC) along with the URL for the web app, and then Chrome can verify
the MAC when starting e.g. {#link #FullScreenActivity}. Chrome can
thus distinguish between legitimate, installed web apps and arbitrary
other URLs.
I gave it a shot to open one of the webapps I own. I gave up after a bit, getting lost in the cryptic algos. Maybe you will have some luck with it. All the best!!!

Reg: Installation of FHIR 5.2.0

I am very new to the hapi-fhir, I have download source (hapi-fhir-5.2.0-standard-distribution) from below link. I am trying to deploy the server on localhost.
https://github.com/hapifhir/hapi-fhir/releases/tag/v5.2.0
OS: ubuntu 16.04
java version: 1.8.0_275
Please help me with deployment procedure ?
If you just want to play with a FHIR server, I'd recommend learning the resources, search params, etc. using a public reference server, e.g. http://hapi.fhir.org/baseR4/
If indeed you need to get started locally, try the Docker installation of the jpa server: https://github.com/hapifhir/hapi-fhir-jpaserver-starter#running-via-docker-hub
The CapabilityStatement will tell you what the server can do: http://localhost:8080/fhir/metadata
To search a resource: http://localhost:8080/fhir/ (e.g. http://localhost:8080/fhir/Patient)
The server will be empty, so you'll need to POST/import data.

Having trouble with built Expo Android app build, pedometer/google fit permissions not working

I have built my app which includes a the expo pedometer app.
The pedometer works in expo, but has issues when built/standalone.
Knowing from the expo docs that I needed to configure OAuth for google fit, I tried to do so.
I selected "Get a Client ID" from:
https://developers.google.com/fit/android/get-api-key
Selected an existing project that I was using for google authentication.
"Fitness API has been enabled.
Next, to use the API you'll need the right credentials."
Selected Fitness API and that I'd be accessing it from Android. Additionally I choose user data.
When I go to select credentials it tells me I already have credentials fit for purpose.
I select Done but my pedometer component still gives values that haven't been updated.
Pedometer.isAvailableAsync() as written in the expo docs:
https://docs.expo.io/versions/latest/sdk/pedometer/
never has it's state updated from checking.
Am I missing something?
I have tried looking at this:
https://forums.expo.io/t/pedometer-fails-after-building-standalon-app/4470/2
But when I try the command:
keytool -list -printcert -jarfile growler.apk | grep SHA1 | awk '{ print $2 }'
in the directory with my apk (currently downloads), it tells me grep isn't a recognized command.
Thanks in advance for your help, I'm fretting this a bit!
For context:
with reference to the code in the expo docs
isPedometerAvailable starts as 'checking' and never stops being in that state.

No project found with name 'undefined' Botkit + rasa_NLU

I am trying to deploy on Slack a chatbot that I have developed with rasa_nlu and that I can run locally on my computer by launching a python script on a Ubuntu shell. So I am trying to use botkit.
I am trying to follow this tutorial :
https://github.com/sohlex/botkit-rasa
I have managed to connect to Slack (basically the bot that I have created on Slack appears as online). Now when I talk to the bot I get the following error message on my Ubuntu shell :
I guess it’s all about where (in what folder) I enter the command (or what I enter as project path) :
$ python -m rasa_nlu.server --path projects
Do you have any insight for this ?
Thank you for the help,
Best,
I had the same issue and the below code fixed it for me.
var rasa = require('botkit-rasa')(
{rasa_uri: 'http://localhost:5000', rasa_project: 'default'});

Not Able to Generate Key For Phonegap getting keytool error

Hello Friends I am Trying To generating Keys to use on buil.phonegap.com
I am using command
keytool -genkey -v -keystore [keystore_name].keystore -alias [alias_name] -keyalg RSA -keysize 2048 -validity 10000
And I got error after completing the whole procedure
Image Link https://i.stack.imgur.com/rm9bf.jpg
So please help me . Or If there any another option to generate key then please tell me
You have to rund the cli as administrator by right clicking on it.
then your file will probably be stored in the location that would look like something similar to this:
C:\Program Files\Java\jdk1.8.0_73\bin

Categories