iink SDK on Device

Answered

If you want to incorporate MyScript technology into a new project, do you need to pay in advance to develop (WPF)

w

The following code:


using MyScript.IInk;

private Engine _engine;

_engine = Engine.Create(MyScript.Certificate.MyCertificate.Bytes);


Do you have to pay in advance?I have created the test project in the background of ATK Samples and downloaded the.cs file.

Is there anything else I need to do


Best Answer

Dear 聂 先生,


If I understand well, you would like to be able to have pages and be able to navigate from one to the other?


Currently, the iink SDK doesn't have a page object, that would allow to implement such thing easilly. We instead use a ContentPackage object, in which you create a part (of type Math, Text,...). In the latter, the length of the page can be "infinite" (of course, you understand the maximum is the capacity of the device) if you scroll.


More information can be found in the documentation: https://developer.myscript.com/docs/interactive-ink/1.4/android/fundamentals/storage/

And the API: https://developer.myscript.com/refguides/interactive-ink/android/1.4/com/myscript/iink/ContentPackage.html


Now, one way to have a page behavior is that you have one Content package per page, and when you want to switch from one page to the other, you close the previous content package and open the one you want to go.


Best regards,


Olivier


Dear 聂 先生,,


Thank you for the update.


On our side, we never tested our iink SDK with the .NET core, so we cannot guarantee it will work. You may give a try, but on our side, in case it is not working, it it not likely we will port our iink SDK to .NET core.


Best regards,


Olivier

Dear Olivier,

Thank you for your answer.

I now decide to use framework 4.5.2 for the project.

According to the example to write the program, encountered a problem

It may be the configuration problem of conf / resources,How to solve this problem

image

image

image


Dear 聂 先生,


the errror means the iink is not able to load the .conf files.


You can refer to the following topic that explains how to proceed: to add and deploy a language in C#: https://developer-support.myscript.com/support/discussions/topics/16000025818


Best regards,


Olivier

Dear Olivier,

Thank you for your answer.

Refer to the example, the program can run normally.

Now I want to make a function, With the demo of the new page and page before and after the page function.

The new method of demo is not suitable for my project.

How to create new page and turn page function based on getstarted.

How to achieve this.

Thank you.

Answer

Dear 聂 先生,


If I understand well, you would like to be able to have pages and be able to navigate from one to the other?


Currently, the iink SDK doesn't have a page object, that would allow to implement such thing easilly. We instead use a ContentPackage object, in which you create a part (of type Math, Text,...). In the latter, the length of the page can be "infinite" (of course, you understand the maximum is the capacity of the device) if you scroll.


More information can be found in the documentation: https://developer.myscript.com/docs/interactive-ink/1.4/android/fundamentals/storage/

And the API: https://developer.myscript.com/refguides/interactive-ink/android/1.4/com/myscript/iink/ContentPackage.html


Now, one way to have a page behavior is that you have one Content package per page, and when you want to switch from one page to the other, you close the previous content package and open the one you want to go.


Best regards,


Olivier

In the newly created WPF project, I wrote a few lines of code referring to the source program GetStarted project setup. The test run reported an internal error.

The following code:


using MyScript.IInk;

private Engine _engine;

_engine = Engine.Create(MyScript.Certificate.MyCertificate.Bytes);


Do you have to pay in advance?I have created the test project in the background of ATK Samples and downloaded the.cs file.

Is there anything else I need to do

Dear 聂 先生,

thank you for contacting us and your questions.

To answer these:
-No, in WPF, there is no much difference than on other platforms. We provide with 100 licenses, which you can use for a development and test purpose.
-In a first time, I recommend your refer to our windows "Get Started" documentation, that explains how you can start using the iink in WPF: https://developer.myscript.com/docs/interactive-ink/1.4/windows/fundamentals/get-started/
-After looking at your ATK dashboard (atk.myscript.com/), it appears you have the "Mismatch between certificate and application" error message, which occurs because you are using the default MyScript "ATK Samples" certificate, while your application has another assembly name: you then need to re-create a certificate using the "assembly name" of your certificate, then add the latter certificate in your project and re-build your application. It should then work properly this way.

You can refer to the following documentation: https://developer.myscript.com/support/account/on-device-license-management/#applications

Let us know if this helps.

Best regards,

Olivier

Dear Olivier,

I've now created a new project and the VS project name is the same as what was created in the ATK Dashboard (both called TESTGX). When I run it, in the Console, there is no error report, but the program will report an error:

Could you tell me how to solve this problem? The appended drawings:

image


Dear 聂 先生,

thank you for the update.

Checking at your console, it appears you have the following error message: "Mismatch between certificate and application"

You should then re-create a certificate proceeding as indicated in our documentation: https://developer.myscript.com/support/account/on-device-license-management/#certificate

-For WPF, basically you shall login to your ATK dashboard: https://atk.myscript.com/
-Create a new certificate entering the assembly name that can be found in your project properties (Application tab).
-Replace the content of your certificate with this one, and recompile your application.

Let us know if this helps.

Best regards,

Olivier

Dear Olivier,

Thank you for your answer.

Let me describe the steps to create a project to see if it is correct: 

-In the ATK dashboard, I created a new project named TEST windows, and then created TESTGX in the new project. Later, I downloaded the TESTGX.cs file to the local. 

-Created a new (VS2020) project named ‘TESTGX’, and put the file ‘TESTGX.cs’ into the program root directory. 

-Installed ‘MyScript.InteractiveInk.Wpf’ from nuget.org 

-Quote ‘MyScript.IInk, MyScript.InteractiveInk.UIReferenceImplementation.Wpf’ 

additionally, The error was no longer reported under the Framework4.5.2 , but the core project reported errors. Is it not supported core project ? 

Thanks.

Dear 聂 先生,


Currently, as of today, you still have the message "Mismatch between certificate and application: TESTGX != MyScript.InteractiveInk.GetStarted.Wpf".


This means your application name is MyScript.InteractiveInk.GetStarted.Wpf, while you are using the certificate with identifier "TESTGX"?


Please ensure to properly rename your application, and it should work properly.


Best regards,


Olivier

Dear Olivier,

I've adjusted the program now,The framework 4.5.2 environment is used

Do you support .Net core?