Expand my Community achievements bar.

SOLVED

how to enable / disable on device in Java SDK

Avatar

Level 4

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

1 Accepted Solution

Avatar

Correct answer by
Level 6

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

 

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

View solution in original post

7 Replies

Avatar

Correct answer by
Level 6

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

 

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

Avatar

Level 4
@josejr19 there doesn't seem to be anything in the Java documentation on how to do this in the code

Avatar

Level 6
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

Avatar

Level 4
@josejr19 That link is for Node. I need the code configuration for Java.

Avatar

Level 6
Yea I was having hard time finding it in the java doc as well. I would look closely at sample code to see where the value is typically set and use the same options provided in the nodejs documentation. My recommendation outside of documentation is confirm with client support.

Avatar

Administrator

@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."

Avatar

Level 1

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 ?!