How can i see my device on my computer ?
mac or windows? android or ios? which environment did you use?
I use my android device and i am on a windows
so there was an error in your codeā¦ I canāt check it cause I am doing something right nowā¦ maybe others can see it and help you with your problemā¦
Okay ā¦ no problem thank you ! Can you juste tell me how too run my device on my computer ?
is that android or ios? if android(windows) I can help you out but if ios sorry I canāt help with thatā¦
yeah android and my computer windows
check your device if connected and go to terminal and type adb devices
if it show your device run inside your terminal (root of ionic app) ionic cordova run android
.
if it doesnāt show your device in adb devices
:
run: adb kill-server
and run again adb start-server
ā¦ you need to ensure that your device has been detected in adb devices
ā¦
Yeah itās work but this put my application on my device and note showing on the computer
it runs in device right? so you can go to chrome browser and go to chrome://inspect and you can see your device thereā¦
Wow thanks you for your help
sure no problems. if something wrong with you code search it in the google maybe something is wrong with your code if it doesnāt workā¦
I juste import a https ( import { https } from āhttps-proxy-agentā; ) instead of āvar https = require(āhttpsā)ā but now thatās tell me when i run the method :
I try with ur way but i have some error ā¦ can you help me please ?
You need to import RequestOptions
import { Http, Headers, RequestOptions } from '@angular/http';
and USER_TOKEN is the token of the user that you need to get with this function from FCMPlugin
FCMPlugin.getToken(function(token){
alert(token);
});
Okay thanks you, that resolve some error ! Now i have this (capture behind) i need too add http to app.module.ts and add him to provider ?
And for get the token of someone how can we do ? we need to put his token in the database then get it ?
Really thank you for helping me !