how to enable / disable on device in Java SDK | Community
Skip to main content
Level 3
January 22, 2021
Solved

how to enable / disable on device in Java SDK

  • January 22, 2021
  • 3 replies
  • 2762 views

Is there a way to enable/disable on-device decisionings in the Java server side SDK?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by josejr19

@rjbu Install and initialize the Node.js or Java SDK with decisioningMethod = on-device.

 

https://adobetarget-sdks.gitbook.io/docs/getting-started/java

3 replies

josejr19Accepted solution
Level 5
January 22, 2021

@rjbu Install and initialize the Node.js or Java SDK with decisioningMethod = on-device.

 

https://adobetarget-sdks.gitbook.io/docs/getting-started/java

Level 5
February 10, 2021
Check this link out. You will find a section called "How it works" first row on the table calls out the options. https://github.com/adobe/target-nodejs-sdk-samples/tree/master/on-device-decisioning
Amelia_Waliany
Adobe Employee
Adobe Employee
December 9, 2021

@davidsonpm was also able to weigh in on your question here during his 7.21.21 Adobe Target Community Q&A Coffee Break! His answer below:

" Yes, there are a couple of ways you can turn on / off on-device decisioning for the Java SDK
1. When you initialize the Java SDK you can set the default decisioningMethod variable for all decisions. You can set it to ON_DEVICE or HYBRID. Setting it to ON_DEVICE will have all requests execute on-device while HYBRID will ask the SDK to make the decision for you whether it may be server-side or on-device depending on the activity that is created.
2. You can override at the getOffers() method to choose which decisioningMethod you want to use request by request."

May 3, 2023

Hello @amelia_waliany  ... is the only way to enable on-device decisioning is that to use JAVA SDK ...
what if use Adobe target Delivery API (https://developers.adobetarget.com/api/delivery-api) and I call it using Rest-full API ... can I also enable the on-device decisioning without using any sdk ?!