Questions tagged [service]

15777 questions
0

votes
0

answer
6

Views

How access pictures after they have been taken by camera used by other app

I have an idea for an android service, and I need to be able to access pictures before they're being taken, to save GPSlocation, moreover, I need also an access to the picture immediately afterwards. Is there any proper way to do it ?
adam17238
1

votes
1

answer
374

Views

How to stop a VpnService that was called with prepare() and startService()?

I't trying to implement a local VpnService to have my app do some tasks, but I'm a little confused as to how to stop it one it started. The VpnService class and client activity are based on this repo: https://github.com/hexene/LocalVPN The caller activity is basically this: public class MainActivity...
DmitryB
1

votes
1

answer
404

Views

Listening for button click in PWA service worker

I am trying to follow the following example for PWA Push Notifications but have a general question regarding service workers https://developers.google.com/web/fundamentals/codelabs/push-notifications/ Within my Service Worker, I want to add a listener to a button/anchor tag My Service Worker is init...
Mike
1

votes
1

answer
378

Views

Importing Dexie in Service Worker

is it possible to import Dexie in service worker? importScripts('https://unpkg.com/[email protected]/dist/dexie.js'); resulted in : The script resource is behind a redirect, which is disallowed. I've to import it locally to the worker by saving the code into a local file, but got a 'window is undefined e...
Yaniv Peretz
1

votes
1

answer
423

Views

Dialog api v2 - Unexpected error while acquiring application default credentials: Could not load the default credentials

i am trying to implement a chat bot application with google dialog flow. i was fallowing this github tutorial https://github.com/dialogflow/dialogflow-nodejs-client-v2 to implement api. this is my code var express = require('express'); var router = express.Router(); const projectId = 'my-project-id'...
pavithra rox
0

votes
0

answer
4

Views

Logstash.service not-found by systemctl

I'm trying to set ElasticStack but I had problems with Kibana and Logstash, I could solve Kibanas issue, but after some days, my CentOS 7 machine don't recognise logstash.service. I think that this is not a logstash issue, instead is a CentOS7 or a Systemd issue. How do you think I can make my logs...
Hikari Olsen Berg
1

votes
1

answer
495

Views

SC create binpath error

I am trying to run the following command in the PowerShell sc create StrongSwan binpath= 'C:\Users\Kanishk\Desktop\Strong\Strong\stronswan\strongswan-5.6.3\src\charon-svc\charon-svc.exe' I have checked the path to the .exe is correct and I can cd to it also. For reference I am following this: https:...
Kanishka Munshi
1

votes
1

answer
793

Views

Workbox Request method 'POST' is unsupported

I am using the code from this site: https://developers.google.com/web/tools/workbox/modules/workbox-routing My code is as below: workbox.routing.registerRoute( new RegExp('http://localhost:64445.*/'), workbox.strategies.staleWhileRevalidate({ cacheName:'Post-Run-time-cache' }), 'POST' ); And it giv...
wadefanyaoxia
1

votes
1

answer
346

Views

React w/ Service Worker & Push Notifications

Some initial considerations: 'react': '^16.8.2', 'react-scripts': '2.1.5' I have created a new react app and I need to implement Push Notifications. Following this tutorial, I was able to get up and running in 5 minutes, but now I have to implement the same strategy (kinda) into a react app. The pro...
Mattia M.
1

votes
2

answer
45

Views

Run Web app separately from Service Fabric

I have Service Fabric and web service in it. If I run the Service Fabric locally, from Visual Studio, I can debug my service, and it is very convenient. However, it takes a lot of time to deploy my code changes to local fabric. I am sure there should be an option to start my service separately from...
PolinaC
1

votes
1

answer
15

Views

Using SQL Server Service Broker with multiple routes

When using the SQL Server Service Broker - if I had a service with two routes configured and I executed the BEGIN DIALOG statement without specifying the desired target broker instance, which of the possible destinations would it pick as the destination for the message? I realise with BEGIN DIALOG I...
JamesP
1

votes
3

answer
11.8k

Views

Creating Windows Startup Services via REG or Command Line

I have a Java program which needs to be a startup program that runs as administrator. It seems that cannot be done without making it a service. I have tried using HKLM\SYSTEM\CurrentControlSet\Services\Services\MyService. I tried something similar to what Google Updater uses (they use ...\Services\g...
Dorothy
1

votes
1

answer
22

Views

Pay API permission denied

I'd like to validate my in-app purchases. I'm using this receipt validator which by looking at the source code is calling https://www.googleapis.com/androidpublisher/v3/applications//purchases/products//tokens/, here's my code basically copied from the readme $googleClient = new Google_Client(); $go...
php_nub_qq
0

votes
0

answer
5

Views

Android - onHandleIntent of IntentService is never called

My android application declares in AndroidManifest.xml a service responsible for displaying error messages for the whole system. In the application class is declared a global exception handler. public class DetectxApp extends Application { @Override public void onCreate () { super.onCreate(); Threa...
araraujo
0

votes
0

answer
2

Views

Debugging a service fabric applications against a remote in-premises cluster by VS 2019

The development machine does not have enough capacity to host and run the Service Fabric cluster on the same machine where VS 2019 installed. So, a possible workaround would be having the cluster created on the local network (not Azure) and debug it remotely. Is it a feasible scenario, and if so how...
Arash
1

votes
3

answer
4.9k

Views

eureka unknownHostException in service discovery

I've two microservices, eureka-client-1 running on localhost:8081 eureka-client-2 running on localhost:8082 Both these are DiscoveryClients registered with 'eureka-server' running on localhost:8761. In code snippet below, I'm trying to call eureka-client-2 from eureka-client-1. Instead of calling ht...
prranay
0

votes
0

answer
13

Views

Add functionality to service worker

I am trying to add counting functionality to my service worker, I want it to count in the background. Is there a way to add functionality to the angular service worker?
Gal Hadas
1

votes
1

answer
532

Views

Helm Deployment vs Service

I am trying to understand k8s and helm. When I create a helm chart, there are 2 files: service.yaml and deployment.yaml. Both of them have a name field. If I understand correctly, the deployment will be responsible for managing the pods, replicasets, etc and thus the service. Basically, why am I...
Ufder
1

votes
2

answer
42

Views

how to make HTTP call only once on component creation

I am retrieving data from a web api through angular 6. I created a service with a fetch function that is called in a component constructor, which will be instanciated multiple times on the same page. My problem is that the service is called each time my component is instanciated. For example my co...
hunB
1

votes
1

answer
34

Views

Is it possible to combine 2 http responses into one in Angular?

I have Angular 6 app and external service api that returns maximum 50 records per request. But in some cases I need to get 100 records. For example the following request will give me first 50 records: www.example.com/records/?count=50 The following next 50: www.example.com/records/?count=50&lastID=F...
Arkadi
1

votes
1

answer
93

Views

CSP with a Service Worker

I want to implement CSP on my site, but also have a Service Worker that caches resources and provides a notice if you are offline. I have defined the following policy: style-src 'self'; object-src 'none'; script-src 'self' 'unsafe-inline'; worker-src 'self'; frame-ancestors 'none'; Google's CSP eval...
Chris
3

votes
0

answer
129

Views

Context.startForegroundService() did not then call Service.startForeground() on Samsung devices

I have an issue with background working of service on Samsung devices. Fatal Exception: android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground() at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1881) at android.os.Handler.dispa...
Nik
1

votes
2

answer
46

Views

Service Fabric Debugging

When I try to run SF service from VS in debug mode I get the following: An attempt was made to upgrade the application but the application's version has not been changed. Be sure to update the version in the application manifest prior to upgrading. Where I have to manually delete this service in SF...
ShaneKm
1

votes
2

answer
73

Views

Why is the partitioning strategy for a service fabric service tied to the partition instead of to the service?

I am just getting started writing some dynamic endpoint discovery for my Service Fabric application and was looking for examples as to how to resolve service endpoints. I found the following code example on stackoverflow: https://stackoverflow.com/a/38562986/4787510 I did some minor variations to th...
Sossenbinder
1

votes
3

answer
84

Views

Display data in a different angular component

Could someone please give me a working example (or refer me to one) which illustrates this functionality in Angular: Component A: gets data from a server (A user enters a word in an input field, the server responds with some definition) Component B: the data received from the server will be displaye...
omar
0

votes
1

answer
11

Views

Action during onMessageReceived() in FirebaseMessagingService

I want to do something everytime onMessageReceived() triggers specifically. I want to send text messages. I'm not really sure if it's a great idea to put a code in FirebaseMessagingService that runs a task that might take a little while to finish (number of messages sent may vary). Do you guys have...
Ralph
3

votes
1

answer
73

Views

Service fabric hosted Asp.net WebApi Container application : 403 - Forbidden : Access is denied. on local cluster

I'm trying to do a lift and shift of a Asp.net MVC application . I've containarized my Asp.Net WebApi application and deployed it AzureContainerRegistry and i'm referencing the container in a service fabric application. My ServiceManifest looks like this bookingacr.azurecr.io/bookingapi And the App...
Arshad Badar Khan
1

votes
0

answer
456

Views

Aurelia CLI PWA with Webpack and Workbox

Last night I attempted to create a PWA using the latest aurelia-cli (version 0.32.0). I created a custom setup with au new that uses Webpack and TypeScript. After that I followed the Workbox with Webpack instructions from Google. npm install workbox-cli --saveDev npm install workbox-webpack-plugin -...
Aligned
2

votes
0

answer
11

Views

Service worker doesn't work on offline mode in chrome

I'm new on the world of angular /Angular CLI and i begin with service worker I try to use this tutorial : https://angular.io/guide/service-worker-getting-started And with another tutorial for create an app with angularCli who have all files for the service worker 1) for the exemple my app name is '...
Yoann Basquin
1

votes
0

answer
65

Views

Azure Bot Service - Channel configuration page displays no content

When I configure the Azure Bot Service Channel, nothing happens. The screen turns white like the image below.
Jose Padilha
1

votes
1

answer
254

Views

How can we access data in service passed from activity using bundle ?

In Activity: Intent service = new Intent(OverlayShowingService.this, shortLayer.class); service.putExtra('prevact','overlayService'); startService(service); stopService(service); What is Bind service? Were can I access my data from activity ? What did I made a miskake? In service: @Override public I...
kamalesh kunwar
1

votes
1

answer
286

Views

Detecting supported interfaces in Flask-Ask Alexa Echo Show

I am trying to build a voice skill for both Echo Show [Screen Enabled] and Echo Dot [Audio only]. Apparently the response directives have to be changed depending on the device if not, it would result in 'Alexa having trouble accessing the skill'. How do we determine the supported interfaces in Flask...
Naveen Vijay
1

votes
1

answer
298

Views

Progressive Web App Notification When Clearing Tasks/Killing App

I've been experimenting with Progressive Web Apps (PWA) and using service workers to create native Notifications on phones (like a Galaxy s7/s8). All has been working great if the page/PWA is open or in the background/tasks (super slick :D), but one thing I've noticed is that if it is killed via th...
karns
1

votes
0

answer
49

Views

Is it possible to control Service Fabric hosted service restart behaviour?

I can't find much documentation on the action that Service Fabric takes when a service it is hosting fails. I have performed some experimentation (using a stateless service in a local cluster), the results of which are below. My question is: is it possible to change this behaviour? There are two d...
jamesmus
1

votes
2

answer
350

Views

Scheduled long running c# jobs in aws

I have a legacy .net standard windows service that uses an IScheduler to execute various long running jobs at certain times of day. I will migrate the code to .net core. I want to get rid of the windows service and run these either serverless or somehow in an aws linux ec2, like with docker or som...
user433342
1

votes
0

answer
119

Views

Notification small icon is not updating as expected

I am using foregroundService for playing audio in Background and show a notification with actions. public NotificationHelper(ForegroundService service) { mFG_Service = service; mNotificationManager = (NotificationManager) mFG_Service.getSystemService(Context.NOTIFICATION_SERVICE); } public void show...
Zeero0
1

votes
1

answer
300

Views

AltBeacon service in separate android process

I need help. There is an application for Xamarin Android. Inside it, a service is started that works with the AltBeacon library. In this service, a thread is created, in which beacons are constantly being scanned. Service started as StartForeground(...). The service should work constantly, so it wa...
OlegS
1

votes
1

answer
183

Views

How to use inversifyjs container as service locator

I'm writing socket server for my IOT project (stm32f100 + WIFI esp) I have implemented communication protocol such as GET query: method=test&data[]=1&data[]=2...etc I want to implement method resolver which will fetch service (controller) by method name from inversifyjs container with it's dependenc...
Nick Muntyanov
1

votes
1

answer
451

Views

onHandleWork never receives intent from pending intent Geofencing

I am working on a Geofencing application. The JobIntentService subclass that handles the GeofenceTransitions never receives the intent. I am receiving location updates at one minute interval then creating a new geofence list then adding the geofences based on a user's current location. Here's my And...
1

votes
0

answer
84

Views

vscode service worker interface objects auto completion

Why vscode dose not see service worker interface objects? lack of auto completion While browser shows that they are still there presence of object logged in browser How to fix this? whole service worker code: self.addEventListener('install', event => { console.log('V1 installing…'); event.w...
Antony

View additional questions